git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1849761 13f79535-47bb-0310-9956-ffa450edef68tags/REL_4_1_0
@@ -25,7 +25,7 @@ package org.apache.poi.sl.usermodel; | |||
*/ | |||
public interface PlaceholderDetails { | |||
enum PlaceholderSize { | |||
quarter, half, full; | |||
quarter, half, full | |||
} | |||
Placeholder getPlaceholder(); |
@@ -207,7 +207,7 @@ public final class Trend implements Function { | |||
allEquals = false; | |||
break; | |||
} | |||
}; | |||
} | |||
return allEquals; | |||
} |
@@ -37,11 +37,11 @@ public class PackagePropertiesMarshaller implements PartMarshaller { | |||
private final static NamespaceImpl namespaceDC = | |||
new NamespaceImpl("dc", PackagePropertiesPart.NAMESPACE_DC_URI); | |||
private final static NamespaceImpl namespaceCoreProperties = | |||
new NamespaceImpl("cp", PackagePropertiesPart.NAMESPACE_CP_URI);; | |||
new NamespaceImpl("cp", PackagePropertiesPart.NAMESPACE_CP_URI); | |||
private final static NamespaceImpl namespaceDcTerms = | |||
new NamespaceImpl("dcterms", PackagePropertiesPart.NAMESPACE_DCTERMS_URI); | |||
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"; | |||
@@ -21,5 +21,5 @@ public enum ChartTypes { | |||
LINE, | |||
PIE, | |||
RADAR, | |||
SCATTER; | |||
SCATTER | |||
} |
@@ -19,7 +19,7 @@ package org.apache.poi.xddf.usermodel.chart; | |||
import java.util.HashMap; | |||
import org.openxmlformats.schemas.drawingml.x2006.chart.STLayoutMode;; | |||
import org.openxmlformats.schemas.drawingml.x2006.chart.STLayoutMode; | |||
public enum LayoutMode { | |||
EDGE(STLayoutMode.EDGE), |
@@ -19,7 +19,7 @@ package org.apache.poi.xddf.usermodel.chart; | |||
import java.util.HashMap; | |||
import org.openxmlformats.schemas.drawingml.x2006.chart.STLayoutTarget;; | |||
import org.openxmlformats.schemas.drawingml.x2006.chart.STLayoutTarget; | |||
public enum LayoutTarget { | |||
INNER(STLayoutTarget.INNER), |
@@ -132,7 +132,7 @@ public abstract class XDDFChartData { | |||
} | |||
if (cache.sizeOfPtArray() < 1) { | |||
cache.addNewPtCount().setVal(1); | |||
cache.addNewPt().setIdx(0);; | |||
cache.addNewPt().setIdx(0); | |||
} | |||
cache.getPtArray(0).setV(title); | |||
ref.setF(titleRef.formatAsString()); |
@@ -25,7 +25,7 @@ import org.openxmlformats.schemas.drawingml.x2006.main.CTTextSpacing; | |||
public abstract class XDDFSpacing { | |||
public static enum Kind { | |||
PERCENT, | |||
POINTS; | |||
POINTS | |||
} | |||
protected CTTextSpacing spacing; |
@@ -242,7 +242,6 @@ public class XDDFTextParagraph { | |||
public void setIndentation(Double points) { | |||
if (points != null || _p.isSetPPr()) { | |||
getOrCreateProperties().setIndentation(points); | |||
; | |||
} | |||
} | |||
@@ -238,7 +238,7 @@ public class XSLFPictureShape extends XSLFSimpleShape | |||
cur.dispose(); | |||
} | |||
final int svgId = getExt(extLst, SVG_URI);; | |||
final int svgId = getExt(extLst, SVG_URI); | |||
if (svgId != -1) { | |||
extLst.removeExt(svgId); | |||
} |
@@ -22,7 +22,7 @@ import org.apache.poi.ss.usermodel.charts.TitleType; | |||
import org.apache.poi.ss.util.CellReference; | |||
import org.apache.poi.util.Removal; | |||
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 |
@@ -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_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, | |||
OUTSET, INSET; | |||
OUTSET, INSET | |||
} | |||
private enum Border { INSIDE_V, INSIDE_H, LEFT, TOP, BOTTOM, RIGHT } |
@@ -99,7 +99,7 @@ public final class ZipFileAssert { | |||
BufferedInputStream buffi = new BufferedInputStream(file_decompress); | |||
/* Open the file with the buffer */ | |||
ZipArchiveInputStream zis = new ZipArchiveInputStream(buffi); | |||
ZipArchiveInputStream zis = new ZipArchiveInputStream(buffi) | |||
) { | |||
/* Processing entries of the zip file */ |
@@ -95,9 +95,9 @@ public class TestOleShape { | |||
"jHkKLEAUFMA+04XC1EzX6UdMAALxcERgK444+wB0Go1CA3jANCNRGdj1UoyIZhlpPsMobf48GmkeI1Pp8xi" + | |||
"Nsm0eo9O3/mAoAvIFEKIQ58wPgrAtK+oJwyjAmL0+bBEPBugzGsUoiKAKhSQGmYjD4y3trXD/AmBc9IeqBwAA"; | |||
enum Api { HSLF, XSLF }; | |||
enum Api { HSLF, XSLF } | |||
@Parameter(value = 0) | |||
public Api api; | |||
@Parameter(value = 1) |
@@ -343,7 +343,7 @@ public final class TestUnfixedBugs { | |||
@Test | |||
public void bug57423_shiftRowsByLargeOffset() throws IOException { | |||
try ( | |||
XSSFWorkbook wb = new XSSFWorkbook(); | |||
XSSFWorkbook wb = new XSSFWorkbook() | |||
//OutputStream out = new FileOutputStream("/tmp/57423." + wb.getClass().getName() + ".xlsx")); | |||
) { | |||
Sheet sh = wb.createSheet(); |
@@ -451,7 +451,7 @@ public final class TestXSSFTable { | |||
@Test(expected = IllegalArgumentException.class) | |||
public void testCreateColumnInvalidIndex() throws IOException { | |||
try (XSSFWorkbook wb = new XSSFWorkbook();) { | |||
try (XSSFWorkbook wb = new XSSFWorkbook()) { | |||
XSSFSheet sh = wb.createSheet(); | |||
AreaReference tableArea = new AreaReference("D2:D3", wb.getSpreadsheetVersion()); | |||
XSSFTable table = sh.createTable(tableArea); |