From: PJ Fanning Date: Sat, 29 Sep 2018 09:33:52 +0000 (+0000) Subject: lgtm issues X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4833c25d32b22e1a9f69173a25ff9c26b0401fef;p=poi.git lgtm issues git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1842302 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/examples/src/org/apache/poi/hssf/view/SVBorder.java b/src/examples/src/org/apache/poi/hssf/view/SVBorder.java index 840a85e5d9..32793bc834 100644 --- a/src/examples/src/org/apache/poi/hssf/view/SVBorder.java +++ b/src/examples/src/org/apache/poi/hssf/view/SVBorder.java @@ -348,14 +348,16 @@ public void paintBorder(Component c, Graphics g, int x, int y, int width, // if there are borders on the west or east then // the second line shouldn't cross them - if (westBorder) - leftx = x+3; + if (westBorder) { + leftx = x + 3; + } - if (eastBorder) - rightx = width-3; + if (eastBorder) { + rightx = width - 3; + } - g.drawLine(x,y,width,y); - g.drawLine(leftx,y+2,rightx,y+2); + g.drawLine(x,y,width,y); + g.drawLine(leftx,y+2,rightx,y+2); } if (eastBorder && @@ -370,11 +372,13 @@ public void paintBorder(Component c, Graphics g, int x, int y, int width, int topy=y; int bottomy=height; - if (northBorder) - topy=y+3; + if (northBorder) { + topy = y + 3; + } - if (southBorder) - bottomy=height-3; + if (southBorder) { + bottomy = height - 3; + } g.drawLine(width-1,y,width-1,height); g.drawLine(width-3,topy,width-3,bottomy); diff --git a/src/java/org/apache/poi/ddf/EscherRecord.java b/src/java/org/apache/poi/ddf/EscherRecord.java index c3962b8b77..c25d91902d 100644 --- a/src/java/org/apache/poi/ddf/EscherRecord.java +++ b/src/java/org/apache/poi/ddf/EscherRecord.java @@ -336,7 +336,7 @@ public abstract class EscherRecord implements Cloneable { String tagName = capitalizeAndTrim((String)attrs[0]); boolean hasValue = false; boolean lastChildComplex = false; - for (int i=0; i 0) { String childTab = " "; for (Object[] attrs : attrList) { - for (int i=0; i