diff options
author | Dominik Stadler <centic@apache.org> | 2018-12-25 09:59:58 +0000 |
---|---|---|
committer | Dominik Stadler <centic@apache.org> | 2018-12-25 09:59:58 +0000 |
commit | 19884d0ca33018d1e417fafd253ec63cf8c31ccd (patch) | |
tree | 4d62b20301f3c4cb1c5995742d27fa6a6068dd34 /src/java/org/apache/poi/sl/draw/DrawTableShape.java | |
parent | 7421bc9a17d6f3803d2d9e44e6535d6004a6090b (diff) | |
download | poi-19884d0ca33018d1e417fafd253ec63cf8c31ccd.tar.gz poi-19884d0ca33018d1e417fafd253ec63cf8c31ccd.zip |
Code-style: Unify how arrays are specified from C-style to normal Java-style
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1849716 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/poi/sl/draw/DrawTableShape.java')
-rw-r--r-- | src/java/org/apache/poi/sl/draw/DrawTableShape.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/java/org/apache/poi/sl/draw/DrawTableShape.java b/src/java/org/apache/poi/sl/draw/DrawTableShape.java index 703fb04d82..1974f0d9a7 100644 --- a/src/java/org/apache/poi/sl/draw/DrawTableShape.java +++ b/src/java/org/apache/poi/sl/draw/DrawTableShape.java @@ -165,7 +165,7 @@ public class DrawTableShape extends DrawShape { final int rows = table.getNumberOfRows(); final int cols = table.getNumberOfColumns(); - BorderEdge edges[] = { BorderEdge.top, BorderEdge.left, null, null }; + BorderEdge[] edges = {BorderEdge.top, BorderEdge.left, null, null}; for (int row = 0; row < rows; row++) { for (int col = 0; col < cols; col++) { edges[2] = (col == cols - 1) ? BorderEdge.right : null; @@ -189,7 +189,7 @@ public class DrawTableShape extends DrawShape { final int rows = table.getNumberOfRows(); final int cols = table.getNumberOfColumns(); - BorderEdge edges[] = new BorderEdge[4]; + BorderEdge[] edges = new BorderEdge[4]; for (int row = 0; row < rows; row++) { for (int col = 0; col < cols; col++) { edges[0] = (col == 0) ? BorderEdge.left : null; @@ -215,7 +215,7 @@ public class DrawTableShape extends DrawShape { final int rows = table.getNumberOfRows(); final int cols = table.getNumberOfColumns(); - BorderEdge edges[] = new BorderEdge[2]; + BorderEdge[] edges = new BorderEdge[2]; for (int row = 0; row < rows; row++) { for (int col = 0; col < cols; col++) { edges[0] = (col > 0 && col < cols - 1) ? BorderEdge.right : null; @@ -232,7 +232,7 @@ public class DrawTableShape extends DrawShape { * @param edges the border edges * @param args the border attributes */ - private static void setEdges(TableCell<?,?> cell, BorderEdge edges[], Object... args) { + private static void setEdges(TableCell<?,?> cell, BorderEdge[] edges, Object... args) { if (cell == null) { return; } |