Remove unnecesssary semicolons

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1849761 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Dominik Stadler 2018-12-26 13:27:50 +00:00
parent f6eab84243
commit 235f3e059c
16 changed files with 18 additions and 19 deletions

View File

@ -25,7 +25,7 @@ package org.apache.poi.sl.usermodel;
*/ */
public interface PlaceholderDetails { public interface PlaceholderDetails {
enum PlaceholderSize { enum PlaceholderSize {
quarter, half, full; quarter, half, full
} }
Placeholder getPlaceholder(); Placeholder getPlaceholder();

View File

@ -207,7 +207,7 @@ public final class Trend implements Function {
allEquals = false; allEquals = false;
break; break;
} }
}; }
return allEquals; return allEquals;
} }

View File

@ -37,11 +37,11 @@ public class PackagePropertiesMarshaller implements PartMarshaller {
private final static NamespaceImpl namespaceDC = private final static NamespaceImpl namespaceDC =
new NamespaceImpl("dc", PackagePropertiesPart.NAMESPACE_DC_URI); new NamespaceImpl("dc", PackagePropertiesPart.NAMESPACE_DC_URI);
private final static NamespaceImpl namespaceCoreProperties = private final static NamespaceImpl namespaceCoreProperties =
new NamespaceImpl("cp", PackagePropertiesPart.NAMESPACE_CP_URI);; new NamespaceImpl("cp", PackagePropertiesPart.NAMESPACE_CP_URI);
private final static NamespaceImpl namespaceDcTerms = private final static NamespaceImpl namespaceDcTerms =
new NamespaceImpl("dcterms", PackagePropertiesPart.NAMESPACE_DCTERMS_URI); new NamespaceImpl("dcterms", PackagePropertiesPart.NAMESPACE_DCTERMS_URI);
private final static NamespaceImpl namespaceXSI = private final static NamespaceImpl namespaceXSI =
new NamespaceImpl("xsi", XMLConstants.W3C_XML_SCHEMA_INSTANCE_NS_URI);; new NamespaceImpl("xsi", XMLConstants.W3C_XML_SCHEMA_INSTANCE_NS_URI);
protected static final String KEYWORD_CATEGORY = "category"; protected static final String KEYWORD_CATEGORY = "category";

View File

@ -21,5 +21,5 @@ public enum ChartTypes {
LINE, LINE,
PIE, PIE,
RADAR, RADAR,
SCATTER; SCATTER
} }

View File

@ -19,7 +19,7 @@ package org.apache.poi.xddf.usermodel.chart;
import java.util.HashMap; import java.util.HashMap;
import org.openxmlformats.schemas.drawingml.x2006.chart.STLayoutMode;; import org.openxmlformats.schemas.drawingml.x2006.chart.STLayoutMode;
public enum LayoutMode { public enum LayoutMode {
EDGE(STLayoutMode.EDGE), EDGE(STLayoutMode.EDGE),

View File

@ -19,7 +19,7 @@ package org.apache.poi.xddf.usermodel.chart;
import java.util.HashMap; import java.util.HashMap;
import org.openxmlformats.schemas.drawingml.x2006.chart.STLayoutTarget;; import org.openxmlformats.schemas.drawingml.x2006.chart.STLayoutTarget;
public enum LayoutTarget { public enum LayoutTarget {
INNER(STLayoutTarget.INNER), INNER(STLayoutTarget.INNER),

View File

@ -132,7 +132,7 @@ public abstract class XDDFChartData {
} }
if (cache.sizeOfPtArray() < 1) { if (cache.sizeOfPtArray() < 1) {
cache.addNewPtCount().setVal(1); cache.addNewPtCount().setVal(1);
cache.addNewPt().setIdx(0);; cache.addNewPt().setIdx(0);
} }
cache.getPtArray(0).setV(title); cache.getPtArray(0).setV(title);
ref.setF(titleRef.formatAsString()); ref.setF(titleRef.formatAsString());

View File

@ -25,7 +25,7 @@ import org.openxmlformats.schemas.drawingml.x2006.main.CTTextSpacing;
public abstract class XDDFSpacing { public abstract class XDDFSpacing {
public static enum Kind { public static enum Kind {
PERCENT, PERCENT,
POINTS; POINTS
} }
protected CTTextSpacing spacing; protected CTTextSpacing spacing;

View File

@ -242,7 +242,6 @@ public class XDDFTextParagraph {
public void setIndentation(Double points) { public void setIndentation(Double points) {
if (points != null || _p.isSetPPr()) { if (points != null || _p.isSetPPr()) {
getOrCreateProperties().setIndentation(points); getOrCreateProperties().setIndentation(points);
;
} }
} }

View File

@ -238,7 +238,7 @@ public class XSLFPictureShape extends XSLFSimpleShape
cur.dispose(); cur.dispose();
} }
final int svgId = getExt(extLst, SVG_URI);; final int svgId = getExt(extLst, SVG_URI);
if (svgId != -1) { if (svgId != -1) {
extLst.removeExt(svgId); extLst.removeExt(svgId);
} }

View File

@ -22,7 +22,7 @@ import org.apache.poi.ss.usermodel.charts.TitleType;
import org.apache.poi.ss.util.CellReference; import org.apache.poi.ss.util.CellReference;
import org.apache.poi.util.Removal; import org.apache.poi.util.Removal;
import org.openxmlformats.schemas.drawingml.x2006.chart.CTSerTx; import org.openxmlformats.schemas.drawingml.x2006.chart.CTSerTx;
import org.apache.poi.xddf.usermodel.chart.XDDFChartData.Series;; import org.apache.poi.xddf.usermodel.chart.XDDFChartData.Series;
/** /**
* Base of all XSSF Chart Series * Base of all XSSF Chart Series

View File

@ -65,7 +65,7 @@ public class XWPFTable implements IBodyElement, ISDTContents {
THIN_THICK_MEDIUM_GAP, THICK_THIN_MEDIUM_GAP, THIN_THICK_THIN_MEDIUM_GAP, THIN_THICK_MEDIUM_GAP, THICK_THIN_MEDIUM_GAP, THIN_THICK_THIN_MEDIUM_GAP,
THIN_THICK_LARGE_GAP, THICK_THIN_LARGE_GAP, THIN_THICK_THIN_LARGE_GAP, THIN_THICK_LARGE_GAP, THICK_THIN_LARGE_GAP, THIN_THICK_THIN_LARGE_GAP,
WAVE, DOUBLE_WAVE, DASH_SMALL_GAP, DASH_DOT_STROKED, THREE_D_EMBOSS, THREE_D_ENGRAVE, WAVE, DOUBLE_WAVE, DASH_SMALL_GAP, DASH_DOT_STROKED, THREE_D_EMBOSS, THREE_D_ENGRAVE,
OUTSET, INSET; OUTSET, INSET
} }
private enum Border { INSIDE_V, INSIDE_H, LEFT, TOP, BOTTOM, RIGHT } private enum Border { INSIDE_V, INSIDE_H, LEFT, TOP, BOTTOM, RIGHT }

View File

@ -99,7 +99,7 @@ public final class ZipFileAssert {
BufferedInputStream buffi = new BufferedInputStream(file_decompress); BufferedInputStream buffi = new BufferedInputStream(file_decompress);
/* Open the file with the buffer */ /* Open the file with the buffer */
ZipArchiveInputStream zis = new ZipArchiveInputStream(buffi); ZipArchiveInputStream zis = new ZipArchiveInputStream(buffi)
) { ) {
/* Processing entries of the zip file */ /* Processing entries of the zip file */

View File

@ -95,9 +95,9 @@ public class TestOleShape {
"jHkKLEAUFMA+04XC1EzX6UdMAALxcERgK444+wB0Go1CA3jANCNRGdj1UoyIZhlpPsMobf48GmkeI1Pp8xi" + "jHkKLEAUFMA+04XC1EzX6UdMAALxcERgK444+wB0Go1CA3jANCNRGdj1UoyIZhlpPsMobf48GmkeI1Pp8xi" +
"Nsm0eo9O3/mAoAvIFEKIQ58wPgrAtK+oJwyjAmL0+bBEPBugzGsUoiKAKhSQGmYjD4y3trXD/AmBc9IeqBwAA"; "Nsm0eo9O3/mAoAvIFEKIQ58wPgrAtK+oJwyjAmL0+bBEPBugzGsUoiKAKhSQGmYjD4y3trXD/AmBc9IeqBwAA";
enum Api { HSLF, XSLF }; enum Api { HSLF, XSLF }
@Parameter(value = 0) @Parameter(value = 0)
public Api api; public Api api;
@Parameter(value = 1) @Parameter(value = 1)

View File

@ -343,7 +343,7 @@ public final class TestUnfixedBugs {
@Test @Test
public void bug57423_shiftRowsByLargeOffset() throws IOException { public void bug57423_shiftRowsByLargeOffset() throws IOException {
try ( try (
XSSFWorkbook wb = new XSSFWorkbook(); XSSFWorkbook wb = new XSSFWorkbook()
//OutputStream out = new FileOutputStream("/tmp/57423." + wb.getClass().getName() + ".xlsx")); //OutputStream out = new FileOutputStream("/tmp/57423." + wb.getClass().getName() + ".xlsx"));
) { ) {
Sheet sh = wb.createSheet(); Sheet sh = wb.createSheet();

View File

@ -451,7 +451,7 @@ public final class TestXSSFTable {
@Test(expected = IllegalArgumentException.class) @Test(expected = IllegalArgumentException.class)
public void testCreateColumnInvalidIndex() throws IOException { public void testCreateColumnInvalidIndex() throws IOException {
try (XSSFWorkbook wb = new XSSFWorkbook();) { try (XSSFWorkbook wb = new XSSFWorkbook()) {
XSSFSheet sh = wb.createSheet(); XSSFSheet sh = wb.createSheet();
AreaReference tableArea = new AreaReference("D2:D3", wb.getSpreadsheetVersion()); AreaReference tableArea = new AreaReference("D2:D3", wb.getSpreadsheetVersion());
XSSFTable table = sh.createTable(tableArea); XSSFTable table = sh.createTable(tableArea);