diff options
author | Dominik Stadler <centic@apache.org> | 2016-04-06 19:49:47 +0000 |
---|---|---|
committer | Dominik Stadler <centic@apache.org> | 2016-04-06 19:49:47 +0000 |
commit | 734cd9d48451c44c22d6b9cb59b8b0a9b0ce16ab (patch) | |
tree | ee92635adf3c4f02b331e41f96c1fb548a1e87d6 /src/ooxml/java/org/apache | |
parent | 454c10a1e1dfec1bdcdc160e6c3fe28766638ce7 (diff) | |
download | poi-734cd9d48451c44c22d6b9cb59b8b0a9b0ce16ab.tar.gz poi-734cd9d48451c44c22d6b9cb59b8b0a9b0ce16ab.zip |
Code cleanup via IntelliJ: Remove unnecessary semicolon
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1738031 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/ooxml/java/org/apache')
10 files changed, 11 insertions, 16 deletions
diff --git a/src/ooxml/java/org/apache/poi/openxml4j/opc/PackagePart.java b/src/ooxml/java/org/apache/poi/openxml4j/opc/PackagePart.java index 8f961c9335..bcf457e1ae 100644 --- a/src/ooxml/java/org/apache/poi/openxml4j/opc/PackagePart.java +++ b/src/ooxml/java/org/apache/poi/openxml4j/opc/PackagePart.java @@ -453,8 +453,7 @@ public abstract class PackagePart implements RelationshipSource, Comparable<Pack return true; } } catch (InvalidFormatException e){ - ; - } + } return false; } diff --git a/src/ooxml/java/org/apache/poi/util/OOXMLLite.java b/src/ooxml/java/org/apache/poi/util/OOXMLLite.java index de19cb0ed9..43a07066a7 100644 --- a/src/ooxml/java/org/apache/poi/util/OOXMLLite.java +++ b/src/ooxml/java/org/apache/poi/util/OOXMLLite.java @@ -37,12 +37,12 @@ import java.util.Map; import java.util.Vector; import java.util.jar.JarEntry; import java.util.jar.JarFile; -import java.util.regex.Pattern;
+import java.util.regex.Pattern; -import junit.framework.TestCase;
+import junit.framework.TestCase; -import org.junit.Test;
-import org.junit.internal.TextListener;
+import org.junit.Test; +import org.junit.internal.TextListener; import org.junit.runner.JUnitCore;import org.junit.runner.Result; /** @@ -201,7 +201,7 @@ public final class OOXMLLite { if (TestCase.class.isAssignableFrom(testclass) || checkForTestAnnotation(testclass)) { out.add(testclass); - }; + } } } diff --git a/src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFShape.java b/src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFShape.java index 29ca2e6541..5db266e42a 100644 --- a/src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFShape.java +++ b/src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFShape.java @@ -182,7 +182,7 @@ public abstract class XSLFShape implements Shape<XSLFShape,XSLFTextParagraph> { if (paint != null) {
setValue(paint);
return true;
- };
+ }
}
return false;
diff --git a/src/ooxml/java/org/apache/poi/xssf/extractor/XSSFExportToXml.java b/src/ooxml/java/org/apache/poi/xssf/extractor/XSSFExportToXml.java index 734a9f4546..d187b66ca1 100644 --- a/src/ooxml/java/org/apache/poi/xssf/extractor/XSSFExportToXml.java +++ b/src/ooxml/java/org/apache/poi/xssf/extractor/XSSFExportToXml.java @@ -303,7 +303,7 @@ public class XSSFExportToXml implements Comparator<String>{ } break; - default: ; + default: } if (node instanceof Element) { diff --git a/src/ooxml/java/org/apache/poi/xssf/model/ThemesTable.java b/src/ooxml/java/org/apache/poi/xssf/model/ThemesTable.java index 19a08b3aae..0fe4abf426 100644 --- a/src/ooxml/java/org/apache/poi/xssf/model/ThemesTable.java +++ b/src/ooxml/java/org/apache/poi/xssf/model/ThemesTable.java @@ -59,7 +59,7 @@ public class ThemesTable extends POIXMLDocumentPart { } public final int idx; public final String name; - }; + } private ThemeDocument theme; diff --git a/src/ooxml/java/org/apache/poi/xssf/usermodel/TextDirection.java b/src/ooxml/java/org/apache/poi/xssf/usermodel/TextDirection.java index 111ab652fc..f91fcca7a8 100644 --- a/src/ooxml/java/org/apache/poi/xssf/usermodel/TextDirection.java +++ b/src/ooxml/java/org/apache/poi/xssf/usermodel/TextDirection.java @@ -44,5 +44,5 @@ public enum TextDirection { * Determines if all of the text is vertical * ("one letter on top of another"). */ - STACKED; + STACKED } diff --git a/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFDocument.java b/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFDocument.java index e5dd3056c6..74de72db33 100644 --- a/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFDocument.java +++ b/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFDocument.java @@ -1227,7 +1227,7 @@ public class XWPFDocument extends POIXMLDocument implements Document, IBody { * @param zoomPercent A percent value denoting the zoom setting for this document. */ public void setZoomPercent(long zoomPercent) { - settings.setZoomPercent(zoomPercent);; + settings.setZoomPercent(zoomPercent); } /** diff --git a/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFRun.java b/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFRun.java index 3bbcac704f..ea931e7349 100644 --- a/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFRun.java +++ b/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFRun.java @@ -150,8 +150,6 @@ public class XWPFRun implements ISDTContents, IRunElement, CharacterRun { } } - ; - /** * @deprecated Use {@link XWPFRun#XWPFRun(CTR, IRunBody)} */ diff --git a/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFTable.java b/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFTable.java index 7c9bb397f9..d512521388 100644 --- a/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFTable.java +++ b/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFTable.java @@ -74,7 +74,6 @@ public class XWPFTable implements IBodyElement, ISDTContents { protected StringBuffer text = new StringBuffer(); protected List<XWPFTableRow> tableRows; - ; protected List<String> styleIDs; protected IBody part; private CTTbl ctTbl; diff --git a/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFTableCell.java b/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFTableCell.java index d074e79e01..39a92f41cf 100644 --- a/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFTableCell.java +++ b/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFTableCell.java @@ -68,7 +68,6 @@ public class XWPFTableCell implements IBody, ICell { protected List<XWPFTable> tables = null;
protected List<IBodyElement> bodyElements = null;
- ;
protected IBody part;
private XWPFTableRow tableRow = null;
|