Modified: poi/trunk/src/ooxml/java/org/apache/poi/openxml4j/opc/PackagingURIHelper.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/openxml4j/opc/PackagingURIHelper.java?rev=1885613&r1=1885612&r2=1885613&view=diff ============================================================================== --- poi/trunk/src/ooxml/java/org/apache/poi/openxml4j/opc/PackagingURIHelper.java (original) +++ poi/trunk/src/ooxml/java/org/apache/poi/openxml4j/opc/PackagingURIHelper.java Sun Jan 17 17:31:22 2021 @@ -38,7 +38,7 @@ public final class PackagingURIHelper { // FIXME: this class implements a lot of path joining and splitting logic that // is already implemented in java.nio.file.Path. // This class should heavily leverage Java library code to reduce the number of lines of code that POI has to maintain and test - private final static POILogger _logger = POILogFactory.getLogger(PackagingURIHelper.class); + private static final POILogger LOG = POILogFactory.getLogger(PackagingURIHelper.class); /** * Package root URI. @@ -290,7 +290,7 @@ public final class PackagingURIHelper { try { targetURI = new URI(path.substring(1)); } catch (Exception e) { - _logger.log(POILogger.WARN, e); + LOG.log(POILogger.WARN, e); return null; } } @@ -328,7 +328,7 @@ public final class PackagingURIHelper { try { return new URI(retVal.toString()); } catch (Exception e) { - _logger.log(POILogger.WARN, e); + LOG.log(POILogger.WARN, e); return null; } } @@ -377,7 +377,7 @@ public final class PackagingURIHelper { try { return new URI(retVal.toString()); } catch (Exception e) { - _logger.log(POILogger.WARN, e); + LOG.log(POILogger.WARN, e); return null; } } @@ -394,7 +394,7 @@ public final class PackagingURIHelper { * <code>null</code>. */ public static URI relativizeURI(URI sourceURI, URI targetURI) { - return relativizeURI(sourceURI, targetURI, false); + return relativizeURI(sourceURI, targetURI, false); } /** @@ -754,7 +754,7 @@ public final class PackagingURIHelper { return sb.toString(); } - private final static char[] hexDigits = { + private static final char[] hexDigits = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F' };
Modified: poi/trunk/src/ooxml/java/org/apache/poi/openxml4j/opc/internal/ContentType.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/openxml4j/opc/internal/ContentType.java?rev=1885613&r1=1885612&r2=1885613&view=diff ============================================================================== --- poi/trunk/src/ooxml/java/org/apache/poi/openxml4j/opc/internal/ContentType.java (original) +++ poi/trunk/src/ooxml/java/org/apache/poi/openxml4j/opc/internal/ContentType.java Sun Jan 17 17:31:22 2021 @@ -71,16 +71,16 @@ public final class ContentType { /** * Media type compiled pattern, without parameters */ - private final static Pattern patternTypeSubType; + private static final Pattern patternTypeSubType; /** * Media type compiled pattern, with parameters. */ - private final static Pattern patternTypeSubTypeParams; + private static final Pattern patternTypeSubTypeParams; /** * Pattern to match on just the parameters part, to work * around the Java Regexp group capture behaviour */ - private final static Pattern patternParams; + private static final Pattern patternParams; static { /* Modified: poi/trunk/src/ooxml/java/org/apache/poi/openxml4j/opc/internal/PackagePropertiesPart.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/openxml4j/opc/internal/PackagePropertiesPart.java?rev=1885613&r1=1885612&r2=1885613&view=diff ============================================================================== --- poi/trunk/src/ooxml/java/org/apache/poi/openxml4j/opc/internal/PackagePropertiesPart.java (original) +++ poi/trunk/src/ooxml/java/org/apache/poi/openxml4j/opc/internal/PackagePropertiesPart.java Sun Jan 17 17:31:22 2021 @@ -46,15 +46,15 @@ import org.apache.poi.util.LocaleUtil; */ public final class PackagePropertiesPart extends PackagePart implements PackageProperties { - public final static String NAMESPACE_DC_URI = PackageProperties.NAMESPACE_DC; + public static final String NAMESPACE_DC_URI = PackageProperties.NAMESPACE_DC; - public final static String NAMESPACE_CP_URI = PackageNamespaces.CORE_PROPERTIES; + public static final String NAMESPACE_CP_URI = PackageNamespaces.CORE_PROPERTIES; - public final static String NAMESPACE_DCTERMS_URI = PackageProperties.NAMESPACE_DCTERMS; + public static final String NAMESPACE_DCTERMS_URI = PackageProperties.NAMESPACE_DCTERMS; - private final static String DEFAULT_DATEFORMAT = "yyyy-MM-dd'T'HH:mm:ss'Z'"; + private static final String DEFAULT_DATEFORMAT = "yyyy-MM-dd'T'HH:mm:ss'Z'"; - private final static String[] DATE_FORMATS = new String[]{ + private static final String[] DATE_FORMATS = new String[]{ DEFAULT_DATEFORMAT, "yyyy-MM-dd'T'HH:mm:ss.SS'Z'", "yyyy-MM-dd" Modified: poi/trunk/src/ooxml/java/org/apache/poi/openxml4j/opc/internal/ZipContentTypeManager.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/openxml4j/opc/internal/ZipContentTypeManager.java?rev=1885613&r1=1885612&r2=1885613&view=diff ============================================================================== --- poi/trunk/src/ooxml/java/org/apache/poi/openxml4j/opc/internal/ZipContentTypeManager.java (original) +++ poi/trunk/src/ooxml/java/org/apache/poi/openxml4j/opc/internal/ZipContentTypeManager.java Sun Jan 17 17:31:22 2021 @@ -38,7 +38,7 @@ import org.w3c.dom.Document; * @see ContentTypeManager */ public class ZipContentTypeManager extends ContentTypeManager { - private final static POILogger logger = POILogFactory.getLogger(ZipContentTypeManager.class); + private static final POILogger LOG = POILogFactory.getLogger(ZipContentTypeManager.class); /** * Delegate constructor to the super constructor. @@ -71,7 +71,7 @@ public class ZipContentTypeManager exten zos.closeArchiveEntry(); } } catch (IOException ioe) { - logger.log(POILogger.ERROR, "Cannot write: ", CONTENT_TYPES_PART_NAME, + LOG.log(POILogger.ERROR, "Cannot write: ", CONTENT_TYPES_PART_NAME, " in Zip !", ioe); return false; } Modified: poi/trunk/src/ooxml/java/org/apache/poi/openxml4j/opc/internal/ZipHelper.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/openxml4j/opc/internal/ZipHelper.java?rev=1885613&r1=1885612&r2=1885613&view=diff ============================================================================== --- poi/trunk/src/ooxml/java/org/apache/poi/openxml4j/opc/internal/ZipHelper.java (original) +++ poi/trunk/src/ooxml/java/org/apache/poi/openxml4j/opc/internal/ZipHelper.java Sun Jan 17 17:31:22 2021 @@ -43,7 +43,7 @@ public final class ZipHelper { * Forward slash use to convert part name between OPC and zip item naming * conventions. */ - private final static String FORWARD_SLASH = "/"; + private static final String FORWARD_SLASH = "/"; /** * Prevent this class to be instancied. Modified: poi/trunk/src/ooxml/java/org/apache/poi/openxml4j/opc/internal/marshallers/PackagePropertiesMarshaller.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/openxml4j/opc/internal/marshallers/PackagePropertiesMarshaller.java?rev=1885613&r1=1885612&r2=1885613&view=diff ============================================================================== --- poi/trunk/src/ooxml/java/org/apache/poi/openxml4j/opc/internal/marshallers/PackagePropertiesMarshaller.java (original) +++ poi/trunk/src/ooxml/java/org/apache/poi/openxml4j/opc/internal/marshallers/PackagePropertiesMarshaller.java Sun Jan 17 17:31:22 2021 @@ -34,13 +34,13 @@ import org.w3c.dom.Element; * Package properties marshaller. */ public class PackagePropertiesMarshaller implements PartMarshaller { - private final static NamespaceImpl namespaceDC = + private static final NamespaceImpl namespaceDC = new NamespaceImpl("dc", PackagePropertiesPart.NAMESPACE_DC_URI); - private final static NamespaceImpl namespaceCoreProperties = + private static final NamespaceImpl namespaceCoreProperties = new NamespaceImpl("cp", PackagePropertiesPart.NAMESPACE_CP_URI); - private final static NamespaceImpl namespaceDcTerms = + private static final NamespaceImpl namespaceDcTerms = new NamespaceImpl("dcterms", PackagePropertiesPart.NAMESPACE_DCTERMS_URI); - private final static NamespaceImpl namespaceXSI = + private static final NamespaceImpl namespaceXSI = new NamespaceImpl("xsi", XMLConstants.W3C_XML_SCHEMA_INSTANCE_NS_URI); protected static final String KEYWORD_CATEGORY = "category"; Modified: poi/trunk/src/ooxml/java/org/apache/poi/openxml4j/opc/internal/marshallers/ZipPartMarshaller.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/openxml4j/opc/internal/marshallers/ZipPartMarshaller.java?rev=1885613&r1=1885612&r2=1885613&view=diff ============================================================================== --- poi/trunk/src/ooxml/java/org/apache/poi/openxml4j/opc/internal/marshallers/ZipPartMarshaller.java (original) +++ poi/trunk/src/ooxml/java/org/apache/poi/openxml4j/opc/internal/marshallers/ZipPartMarshaller.java Sun Jan 17 17:31:22 2021 @@ -47,7 +47,7 @@ import org.w3c.dom.Element; * Zip part marshaller. This marshaller is use to save any part in a zip stream. */ public final class ZipPartMarshaller implements PartMarshaller { - private final static POILogger logger = POILogFactory.getLogger(ZipPartMarshaller.class); + private static final POILogger LOG = POILogFactory.getLogger(ZipPartMarshaller.class); /** * Save the specified part to the given stream. @@ -64,7 +64,7 @@ public final class ZipPartMarshaller imp public boolean marshall(PackagePart part, OutputStream os) throws OpenXML4JException { if (!(os instanceof ZipArchiveOutputStream)) { - logger.log(POILogger.ERROR,"Unexpected class ", os.getClass().getName()); + LOG.log(POILogger.ERROR,"Unexpected class ", os.getClass().getName()); throw new OpenXML4JException("ZipOutputStream expected !"); // Normally should happen only in development phase, so just throw // exception @@ -91,7 +91,7 @@ public final class ZipPartMarshaller imp zos.closeArchiveEntry(); } } catch (IOException ioe) { - logger.log(POILogger.ERROR,"Cannot write: ", part.getPartName(), ": in ZIP", + LOG.log(POILogger.ERROR,"Cannot write: ", part.getPartName(), ": in ZIP", ioe); return false; } @@ -186,7 +186,7 @@ public final class ZipPartMarshaller imp zos.closeArchiveEntry(); } } catch (IOException e) { - logger.log(POILogger.ERROR,"Cannot create zip entry ", relPartName, e); + LOG.log(POILogger.ERROR,"Cannot create zip entry ", relPartName, e); return false; } } Modified: poi/trunk/src/ooxml/java/org/apache/poi/poifs/crypt/temp/EncryptedTempData.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/poifs/crypt/temp/EncryptedTempData.java?rev=1885613&r1=1885612&r2=1885613&view=diff ============================================================================== --- poi/trunk/src/ooxml/java/org/apache/poi/poifs/crypt/temp/EncryptedTempData.java (original) +++ poi/trunk/src/ooxml/java/org/apache/poi/poifs/crypt/temp/EncryptedTempData.java Sun Jan 17 17:31:22 2021 @@ -47,8 +47,8 @@ import org.apache.poi.util.TempFile; public class EncryptedTempData { private static POILogger LOG = POILogFactory.getLogger(EncryptedTempData.class); - private final static CipherAlgorithm cipherAlgorithm = CipherAlgorithm.aes128; - private final static String PADDING = "PKCS5Padding"; + private static final CipherAlgorithm cipherAlgorithm = CipherAlgorithm.aes128; + private static final String PADDING = "PKCS5Padding"; private final SecretKeySpec skeySpec; private final byte[] ivBytes; private final File tempFile; Modified: poi/trunk/src/ooxml/java/org/apache/poi/poifs/crypt/temp/SheetDataWriterWithDecorator.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/poifs/crypt/temp/SheetDataWriterWithDecorator.java?rev=1885613&r1=1885612&r2=1885613&view=diff ============================================================================== --- poi/trunk/src/ooxml/java/org/apache/poi/poifs/crypt/temp/SheetDataWriterWithDecorator.java (original) +++ poi/trunk/src/ooxml/java/org/apache/poi/poifs/crypt/temp/SheetDataWriterWithDecorator.java Sun Jan 17 17:31:22 2021 @@ -39,14 +39,14 @@ import org.apache.poi.xssf.streaming.She @Beta public class SheetDataWriterWithDecorator extends SheetDataWriter { - final static CipherAlgorithm cipherAlgorithm = CipherAlgorithm.aes128; + static final CipherAlgorithm cipherAlgorithm = CipherAlgorithm.aes128; SecretKeySpec skeySpec; byte[] ivBytes; - + public SheetDataWriterWithDecorator() throws IOException { super(); } - + void init() { if(skeySpec == null) { SecureRandom sr = new SecureRandom(); @@ -64,7 +64,7 @@ public class SheetDataWriterWithDecorato Cipher ciEnc = CryptoFunctions.getCipher(skeySpec, cipherAlgorithm, ChainingMode.cbc, ivBytes, Cipher.ENCRYPT_MODE, "PKCS5Padding"); return new CipherOutputStream(fos, ciEnc); } - + @Override protected InputStream decorateInputStream(FileInputStream fis) { Cipher ciDec = CryptoFunctions.getCipher(skeySpec, cipherAlgorithm, ChainingMode.cbc, ivBytes, Cipher.DECRYPT_MODE, "PKCS5Padding"); Modified: poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/BlackWhiteMode.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/BlackWhiteMode.java?rev=1885613&r1=1885612&r2=1885613&view=diff ============================================================================== --- poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/BlackWhiteMode.java (original) +++ poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/BlackWhiteMode.java Sun Jan 17 17:31:22 2021 @@ -33,7 +33,7 @@ public enum BlackWhiteMode { this.underlying = mode; } - private final static HashMap<STBlackWhiteMode.Enum, BlackWhiteMode> reverse = new HashMap<>(); + private static final HashMap<STBlackWhiteMode.Enum, BlackWhiteMode> reverse = new HashMap<>(); static { for (BlackWhiteMode value : values()) { reverse.put(value.underlying, value); Modified: poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/CompoundLine.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/CompoundLine.java?rev=1885613&r1=1885612&r2=1885613&view=diff ============================================================================== --- poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/CompoundLine.java (original) +++ poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/CompoundLine.java Sun Jan 17 17:31:22 2021 @@ -34,7 +34,7 @@ public enum CompoundLine { this.underlying = line; } - private final static HashMap<STCompoundLine.Enum, CompoundLine> reverse = new HashMap<>(); + private static final HashMap<STCompoundLine.Enum, CompoundLine> reverse = new HashMap<>(); static { for (CompoundLine value : values()) { reverse.put(value.underlying, value); Modified: poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/LineCap.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/LineCap.java?rev=1885613&r1=1885612&r2=1885613&view=diff ============================================================================== --- poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/LineCap.java (original) +++ poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/LineCap.java Sun Jan 17 17:31:22 2021 @@ -32,7 +32,7 @@ public enum LineCap { this.underlying = line; } - private final static HashMap<STLineCap.Enum, LineCap> reverse = new HashMap<>(); + private static final HashMap<STLineCap.Enum, LineCap> reverse = new HashMap<>(); static { for (LineCap value : values()) { reverse.put(value.underlying, value); Modified: poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/LineEndLength.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/LineEndLength.java?rev=1885613&r1=1885612&r2=1885613&view=diff ============================================================================== --- poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/LineEndLength.java (original) +++ poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/LineEndLength.java Sun Jan 17 17:31:22 2021 @@ -32,7 +32,7 @@ public enum LineEndLength { this.underlying = lineEnd; } - private final static HashMap<STLineEndLength.Enum, LineEndLength> reverse = new HashMap<>(); + private static final HashMap<STLineEndLength.Enum, LineEndLength> reverse = new HashMap<>(); static { for (LineEndLength value : values()) { reverse.put(value.underlying, value); Modified: poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/LineEndType.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/LineEndType.java?rev=1885613&r1=1885612&r2=1885613&view=diff ============================================================================== --- poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/LineEndType.java (original) +++ poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/LineEndType.java Sun Jan 17 17:31:22 2021 @@ -35,7 +35,7 @@ public enum LineEndType { this.underlying = lineEnd; } - private final static HashMap<STLineEndType.Enum, LineEndType> reverse = new HashMap<>(); + private static final HashMap<STLineEndType.Enum, LineEndType> reverse = new HashMap<>(); static { for (LineEndType value : values()) { reverse.put(value.underlying, value); Modified: poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/LineEndWidth.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/LineEndWidth.java?rev=1885613&r1=1885612&r2=1885613&view=diff ============================================================================== --- poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/LineEndWidth.java (original) +++ poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/LineEndWidth.java Sun Jan 17 17:31:22 2021 @@ -32,7 +32,7 @@ public enum LineEndWidth { this.underlying = lineEnd; } - private final static HashMap<STLineEndWidth.Enum, LineEndWidth> reverse = new HashMap<>(); + private static final HashMap<STLineEndWidth.Enum, LineEndWidth> reverse = new HashMap<>(); static { for (LineEndWidth value : values()) { reverse.put(value.underlying, value); Modified: poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/PathShadeType.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/PathShadeType.java?rev=1885613&r1=1885612&r2=1885613&view=diff ============================================================================== --- poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/PathShadeType.java (original) +++ poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/PathShadeType.java Sun Jan 17 17:31:22 2021 @@ -32,7 +32,7 @@ public enum PathShadeType { this.underlying = pathShadeType; } - private final static HashMap<STPathShadeType.Enum, PathShadeType> reverse = new HashMap<>(); + private static final HashMap<STPathShadeType.Enum, PathShadeType> reverse = new HashMap<>(); static { for (PathShadeType value : values()) { reverse.put(value.underlying, value); Modified: poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/PenAlignment.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/PenAlignment.java?rev=1885613&r1=1885612&r2=1885613&view=diff ============================================================================== --- poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/PenAlignment.java (original) +++ poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/PenAlignment.java Sun Jan 17 17:31:22 2021 @@ -31,7 +31,7 @@ public enum PenAlignment { this.underlying = alignment; } - private final static HashMap<STPenAlignment.Enum, PenAlignment> reverse = new HashMap<>(); + private static final HashMap<STPenAlignment.Enum, PenAlignment> reverse = new HashMap<>(); static { for (PenAlignment value : values()) { reverse.put(value.underlying, value); Modified: poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/PresetColor.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/PresetColor.java?rev=1885613&r1=1885612&r2=1885613&view=diff ============================================================================== --- poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/PresetColor.java (original) +++ poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/PresetColor.java Sun Jan 17 17:31:22 2021 @@ -167,7 +167,7 @@ public enum PresetColor { this.underlying = color; } - private final static HashMap<STPresetColorVal.Enum, PresetColor> reverse = new HashMap<>(); + private static final HashMap<STPresetColorVal.Enum, PresetColor> reverse = new HashMap<>(); static { for (PresetColor value : values()) { reverse.put(value.underlying, value); Modified: poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/PresetGeometry.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/PresetGeometry.java?rev=1885613&r1=1885612&r2=1885613&view=diff ============================================================================== --- poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/PresetGeometry.java (original) +++ poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/PresetGeometry.java Sun Jan 17 17:31:22 2021 @@ -217,7 +217,7 @@ public enum PresetGeometry { this.underlying = shape; } - private final static HashMap<STShapeType.Enum, PresetGeometry> reverse = new HashMap<>(); + private static final HashMap<STShapeType.Enum, PresetGeometry> reverse = new HashMap<>(); static { for (PresetGeometry value : values()) { reverse.put(value.underlying, value); Modified: poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/PresetLineDash.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/PresetLineDash.java?rev=1885613&r1=1885612&r2=1885613&view=diff ============================================================================== --- poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/PresetLineDash.java (original) +++ poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/PresetLineDash.java Sun Jan 17 17:31:22 2021 @@ -40,7 +40,7 @@ public enum PresetLineDash { this.underlying = dash; } - private final static HashMap<STPresetLineDashVal.Enum, PresetLineDash> reverse = new HashMap<>(); + private static final HashMap<STPresetLineDashVal.Enum, PresetLineDash> reverse = new HashMap<>(); static { for (PresetLineDash value : values()) { reverse.put(value.underlying, value); Modified: poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/PresetPattern.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/PresetPattern.java?rev=1885613&r1=1885612&r2=1885613&view=diff ============================================================================== --- poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/PresetPattern.java (original) +++ poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/PresetPattern.java Sun Jan 17 17:31:22 2021 @@ -83,7 +83,7 @@ public enum PresetPattern { this.underlying = pattern; } - private final static HashMap<STPresetPatternVal.Enum, PresetPattern> reverse = new HashMap<>(); + private static final HashMap<STPresetPatternVal.Enum, PresetPattern> reverse = new HashMap<>(); static { for (PresetPattern value : values()) { reverse.put(value.underlying, value); Modified: poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/RectangleAlignment.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/RectangleAlignment.java?rev=1885613&r1=1885612&r2=1885613&view=diff ============================================================================== --- poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/RectangleAlignment.java (original) +++ poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/RectangleAlignment.java Sun Jan 17 17:31:22 2021 @@ -38,7 +38,7 @@ public enum RectangleAlignment { this.underlying = alignment; } - private final static HashMap<STRectAlignment.Enum, RectangleAlignment> reverse = new HashMap<>(); + private static final HashMap<STRectAlignment.Enum, RectangleAlignment> reverse = new HashMap<>(); static { for (RectangleAlignment value : values()) { reverse.put(value.underlying, value); Modified: poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/SchemeColor.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/SchemeColor.java?rev=1885613&r1=1885612&r2=1885613&view=diff ============================================================================== --- poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/SchemeColor.java (original) +++ poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/SchemeColor.java Sun Jan 17 17:31:22 2021 @@ -46,7 +46,7 @@ public enum SchemeColor { this.underlying = color; } - private final static HashMap<STSchemeColorVal.Enum, SchemeColor> reverse = new HashMap<>(); + private static final HashMap<STSchemeColorVal.Enum, SchemeColor> reverse = new HashMap<>(); static { for (SchemeColor value : values()) { reverse.put(value.underlying, value); Modified: poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/SystemColor.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/SystemColor.java?rev=1885613&r1=1885612&r2=1885613&view=diff ============================================================================== --- poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/SystemColor.java (original) +++ poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/SystemColor.java Sun Jan 17 17:31:22 2021 @@ -59,7 +59,7 @@ public enum SystemColor { this.underlying = color; } - private final static HashMap<STSystemColorVal.Enum, SystemColor> reverse = new HashMap<>(); + private static final HashMap<STSystemColorVal.Enum, SystemColor> reverse = new HashMap<>(); static { for (SystemColor value : values()) { reverse.put(value.underlying, value); Modified: poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/TileFlipMode.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/TileFlipMode.java?rev=1885613&r1=1885612&r2=1885613&view=diff ============================================================================== --- poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/TileFlipMode.java (original) +++ poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/TileFlipMode.java Sun Jan 17 17:31:22 2021 @@ -33,7 +33,7 @@ public enum TileFlipMode { this.underlying = mode; } - private final static HashMap<STTileFlipMode.Enum, TileFlipMode> reverse = new HashMap<>(); + private static final HashMap<STTileFlipMode.Enum, TileFlipMode> reverse = new HashMap<>(); static { for (TileFlipMode value : values()) { reverse.put(value.underlying, value); Modified: poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/chart/AxisCrossBetween.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/chart/AxisCrossBetween.java?rev=1885613&r1=1885612&r2=1885613&view=diff ============================================================================== --- poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/chart/AxisCrossBetween.java (original) +++ poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/chart/AxisCrossBetween.java Sun Jan 17 17:31:22 2021 @@ -31,7 +31,7 @@ public enum AxisCrossBetween { this.underlying = crossBetween; } - private final static HashMap<STCrossBetween.Enum, AxisCrossBetween> reverse = new HashMap<>(); + private static final HashMap<STCrossBetween.Enum, AxisCrossBetween> reverse = new HashMap<>(); static { for (AxisCrossBetween value : values()) { reverse.put(value.underlying, value); Modified: poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/chart/AxisCrosses.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/chart/AxisCrosses.java?rev=1885613&r1=1885612&r2=1885613&view=diff ============================================================================== --- poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/chart/AxisCrosses.java (original) +++ poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/chart/AxisCrosses.java Sun Jan 17 17:31:22 2021 @@ -32,7 +32,7 @@ public enum AxisCrosses { this.underlying = crosses; } - private final static HashMap<STCrosses.Enum, AxisCrosses> reverse = new HashMap<>(); + private static final HashMap<STCrosses.Enum, AxisCrosses> reverse = new HashMap<>(); static { for (AxisCrosses value : values()) { reverse.put(value.underlying, value); Modified: poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/chart/AxisLabelAlignment.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/chart/AxisLabelAlignment.java?rev=1885613&r1=1885612&r2=1885613&view=diff ============================================================================== --- poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/chart/AxisLabelAlignment.java (original) +++ poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/chart/AxisLabelAlignment.java Sun Jan 17 17:31:22 2021 @@ -32,7 +32,7 @@ public enum AxisLabelAlignment { this.underlying = alignment; } - private final static HashMap<STLblAlgn.Enum, AxisLabelAlignment> reverse = new HashMap<>(); + private static final HashMap<STLblAlgn.Enum, AxisLabelAlignment> reverse = new HashMap<>(); static { for (AxisLabelAlignment value : values()) { reverse.put(value.underlying, value); Modified: poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/chart/AxisOrientation.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/chart/AxisOrientation.java?rev=1885613&r1=1885612&r2=1885613&view=diff ============================================================================== --- poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/chart/AxisOrientation.java (original) +++ poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/chart/AxisOrientation.java Sun Jan 17 17:31:22 2021 @@ -31,7 +31,7 @@ public enum AxisOrientation { this.underlying = orientation; } - private final static HashMap<STOrientation.Enum, AxisOrientation> reverse = new HashMap<>(); + private static final HashMap<STOrientation.Enum, AxisOrientation> reverse = new HashMap<>(); static { for (AxisOrientation value : values()) { reverse.put(value.underlying, value); Modified: poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/chart/AxisPosition.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/chart/AxisPosition.java?rev=1885613&r1=1885612&r2=1885613&view=diff ============================================================================== --- poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/chart/AxisPosition.java (original) +++ poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/chart/AxisPosition.java Sun Jan 17 17:31:22 2021 @@ -33,7 +33,7 @@ public enum AxisPosition { this.underlying = position; } - private final static HashMap<STAxPos.Enum, AxisPosition> reverse = new HashMap<>(); + private static final HashMap<STAxPos.Enum, AxisPosition> reverse = new HashMap<>(); static { for (AxisPosition value : values()) { reverse.put(value.underlying, value); Modified: poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/chart/AxisTickLabelPosition.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/chart/AxisTickLabelPosition.java?rev=1885613&r1=1885612&r2=1885613&view=diff ============================================================================== --- poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/chart/AxisTickLabelPosition.java (original) +++ poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/chart/AxisTickLabelPosition.java Sun Jan 17 17:31:22 2021 @@ -33,7 +33,7 @@ public enum AxisTickLabelPosition { this.underlying = position; } - private final static HashMap<STTickLblPos.Enum, AxisTickLabelPosition> reverse = new HashMap<>(); + private static final HashMap<STTickLblPos.Enum, AxisTickLabelPosition> reverse = new HashMap<>(); static { for (AxisTickLabelPosition value : values()) { reverse.put(value.underlying, value); Modified: poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/chart/AxisTickMark.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/chart/AxisTickMark.java?rev=1885613&r1=1885612&r2=1885613&view=diff ============================================================================== --- poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/chart/AxisTickMark.java (original) +++ poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/chart/AxisTickMark.java Sun Jan 17 17:31:22 2021 @@ -33,7 +33,7 @@ public enum AxisTickMark { this.underlying = tickMark; } - private final static HashMap<STTickMark.Enum, AxisTickMark> reverse = new HashMap<>(); + private static final HashMap<STTickMark.Enum, AxisTickMark> reverse = new HashMap<>(); static { for (AxisTickMark value : values()) { reverse.put(value.underlying, value); Modified: poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/chart/BarDirection.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/chart/BarDirection.java?rev=1885613&r1=1885612&r2=1885613&view=diff ============================================================================== --- poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/chart/BarDirection.java (original) +++ poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/chart/BarDirection.java Sun Jan 17 17:31:22 2021 @@ -31,7 +31,7 @@ public enum BarDirection { this.underlying = direction; } - private final static HashMap<STBarDir.Enum, BarDirection> reverse = new HashMap<>(); + private static final HashMap<STBarDir.Enum, BarDirection> reverse = new HashMap<>(); static { for (BarDirection value : values()) { reverse.put(value.underlying, value); Modified: poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/chart/BarGrouping.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/chart/BarGrouping.java?rev=1885613&r1=1885612&r2=1885613&view=diff ============================================================================== --- poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/chart/BarGrouping.java (original) +++ poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/chart/BarGrouping.java Sun Jan 17 17:31:22 2021 @@ -33,7 +33,7 @@ public enum BarGrouping { this.underlying = grouping; } - private final static HashMap<STBarGrouping.Enum, BarGrouping> reverse = new HashMap<>(); + private static final HashMap<STBarGrouping.Enum, BarGrouping> reverse = new HashMap<>(); static { for (BarGrouping value : values()) { reverse.put(value.underlying, value); Modified: poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/chart/DisplayBlanks.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/chart/DisplayBlanks.java?rev=1885613&r1=1885612&r2=1885613&view=diff ============================================================================== --- poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/chart/DisplayBlanks.java (original) +++ poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/chart/DisplayBlanks.java Sun Jan 17 17:31:22 2021 @@ -32,7 +32,7 @@ public enum DisplayBlanks { this.underlying = mode; } - private final static HashMap<STDispBlanksAs.Enum, DisplayBlanks> reverse = new HashMap<>(); + private static final HashMap<STDispBlanksAs.Enum, DisplayBlanks> reverse = new HashMap<>(); static { for (DisplayBlanks value : values()) { reverse.put(value.underlying, value); Modified: poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/chart/ErrorBarType.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/chart/ErrorBarType.java?rev=1885613&r1=1885612&r2=1885613&view=diff ============================================================================== --- poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/chart/ErrorBarType.java (original) +++ poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/chart/ErrorBarType.java Sun Jan 17 17:31:22 2021 @@ -32,7 +32,7 @@ public enum ErrorBarType { this.underlying = barType; } - private final static HashMap<STErrBarType.Enum, ErrorBarType> reverse = new HashMap<>(); + private static final HashMap<STErrBarType.Enum, ErrorBarType> reverse = new HashMap<>(); static { for (ErrorBarType value : values()) { reverse.put(value.underlying, value); Modified: poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/chart/ErrorDirection.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/chart/ErrorDirection.java?rev=1885613&r1=1885612&r2=1885613&view=diff ============================================================================== --- poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/chart/ErrorDirection.java (original) +++ poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/chart/ErrorDirection.java Sun Jan 17 17:31:22 2021 @@ -31,7 +31,7 @@ public enum ErrorDirection { this.underlying = direction; } - private final static HashMap<STErrDir.Enum, ErrorDirection> reverse = new HashMap<>(); + private static final HashMap<STErrDir.Enum, ErrorDirection> reverse = new HashMap<>(); static { for (ErrorDirection value : values()) { reverse.put(value.underlying, value); Modified: poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/chart/ErrorValueType.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/chart/ErrorValueType.java?rev=1885613&r1=1885612&r2=1885613&view=diff ============================================================================== --- poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/chart/ErrorValueType.java (original) +++ poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/chart/ErrorValueType.java Sun Jan 17 17:31:22 2021 @@ -34,7 +34,7 @@ public enum ErrorValueType { this.underlying = valueType; } - private final static HashMap<STErrValType.Enum, ErrorValueType> reverse = new HashMap<>(); + private static final HashMap<STErrValType.Enum, ErrorValueType> reverse = new HashMap<>(); static { for (ErrorValueType value : values()) { reverse.put(value.underlying, value); Modified: poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/chart/Grouping.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/chart/Grouping.java?rev=1885613&r1=1885612&r2=1885613&view=diff ============================================================================== --- poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/chart/Grouping.java (original) +++ poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/chart/Grouping.java Sun Jan 17 17:31:22 2021 @@ -32,7 +32,7 @@ public enum Grouping { this.underlying = grouping; } - private final static HashMap<STGrouping.Enum, Grouping> reverse = new HashMap<STGrouping.Enum, Grouping>(); + private static final HashMap<STGrouping.Enum, Grouping> reverse = new HashMap<STGrouping.Enum, Grouping>(); static { for (Grouping value : values()) { reverse.put(value.underlying, value); Modified: poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/chart/LayoutMode.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/chart/LayoutMode.java?rev=1885613&r1=1885612&r2=1885613&view=diff ============================================================================== --- poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/chart/LayoutMode.java (original) +++ poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/chart/LayoutMode.java Sun Jan 17 17:31:22 2021 @@ -31,7 +31,7 @@ public enum LayoutMode { this.underlying = layoutMode; } - private final static HashMap<STLayoutMode.Enum, LayoutMode> reverse = new HashMap<>(); + private static final HashMap<STLayoutMode.Enum, LayoutMode> reverse = new HashMap<>(); static { for (LayoutMode value : values()) { reverse.put(value.underlying, value); Modified: poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/chart/LayoutTarget.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/chart/LayoutTarget.java?rev=1885613&r1=1885612&r2=1885613&view=diff ============================================================================== --- poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/chart/LayoutTarget.java (original) +++ poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/chart/LayoutTarget.java Sun Jan 17 17:31:22 2021 @@ -31,7 +31,7 @@ public enum LayoutTarget { this.underlying = layoutTarget; } - private final static HashMap<STLayoutTarget.Enum, LayoutTarget> reverse = new HashMap<>(); + private static final HashMap<STLayoutTarget.Enum, LayoutTarget> reverse = new HashMap<>(); static { for (LayoutTarget value : values()) { reverse.put(value.underlying, value); Modified: poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/chart/LegendPosition.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/chart/LegendPosition.java?rev=1885613&r1=1885612&r2=1885613&view=diff ============================================================================== --- poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/chart/LegendPosition.java (original) +++ poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/chart/LegendPosition.java Sun Jan 17 17:31:22 2021 @@ -34,7 +34,7 @@ public enum LegendPosition { this.underlying = position; } - private final static HashMap<STLegendPos.Enum, LegendPosition> reverse = new HashMap<>(); + private static final HashMap<STLegendPos.Enum, LegendPosition> reverse = new HashMap<>(); static { for (LegendPosition value : values()) { reverse.put(value.underlying, value); Modified: poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/chart/MarkerStyle.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/chart/MarkerStyle.java?rev=1885613&r1=1885612&r2=1885613&view=diff ============================================================================== --- poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/chart/MarkerStyle.java (original) +++ poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/chart/MarkerStyle.java Sun Jan 17 17:31:22 2021 @@ -40,7 +40,7 @@ public enum MarkerStyle { this.underlying = style; } - private final static HashMap<STMarkerStyle.Enum, MarkerStyle> reverse = new HashMap<>(); + private static final HashMap<STMarkerStyle.Enum, MarkerStyle> reverse = new HashMap<>(); static { for (MarkerStyle value : values()) { reverse.put(value.underlying, value); Modified: poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/chart/RadarStyle.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/chart/RadarStyle.java?rev=1885613&r1=1885612&r2=1885613&view=diff ============================================================================== --- poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/chart/RadarStyle.java (original) +++ poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/chart/RadarStyle.java Sun Jan 17 17:31:22 2021 @@ -32,7 +32,7 @@ public enum RadarStyle { this.underlying = style; } - private final static HashMap<STRadarStyle.Enum, RadarStyle> reverse = new HashMap<>(); + private static final HashMap<STRadarStyle.Enum, RadarStyle> reverse = new HashMap<>(); static { for (RadarStyle value : values()) { reverse.put(value.underlying, value); Modified: poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/chart/ScatterStyle.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/chart/ScatterStyle.java?rev=1885613&r1=1885612&r2=1885613&view=diff ============================================================================== --- poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/chart/ScatterStyle.java (original) +++ poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/chart/ScatterStyle.java Sun Jan 17 17:31:22 2021 @@ -35,7 +35,7 @@ public enum ScatterStyle { this.underlying = style; } - private final static HashMap<STScatterStyle.Enum, ScatterStyle> reverse = new HashMap<>(); + private static final HashMap<STScatterStyle.Enum, ScatterStyle> reverse = new HashMap<>(); static { for (ScatterStyle value : values()) { reverse.put(value.underlying, value); Modified: poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/chart/Shape.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/chart/Shape.java?rev=1885613&r1=1885612&r2=1885613&view=diff ============================================================================== --- poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/chart/Shape.java (original) +++ poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/chart/Shape.java Sun Jan 17 17:31:22 2021 @@ -35,7 +35,7 @@ public enum Shape { this.underlying = grouping; } - private final static HashMap<STShape.Enum, Shape> reverse = new HashMap<>(); + private static final HashMap<STShape.Enum, Shape> reverse = new HashMap<>(); static { for (Shape value : values()) { reverse.put(value.underlying, value); Modified: poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/text/AnchorType.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/text/AnchorType.java?rev=1885613&r1=1885612&r2=1885613&view=diff ============================================================================== --- poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/text/AnchorType.java (original) +++ poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/text/AnchorType.java Sun Jan 17 17:31:22 2021 @@ -34,7 +34,7 @@ public enum AnchorType { this.underlying = caps; } - private final static HashMap<STTextAnchoringType.Enum, AnchorType> reverse = new HashMap<>(); + private static final HashMap<STTextAnchoringType.Enum, AnchorType> reverse = new HashMap<>(); static { for (AnchorType value : values()) { reverse.put(value.underlying, value); Modified: poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/text/AutonumberScheme.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/text/AutonumberScheme.java?rev=1885613&r1=1885612&r2=1885613&view=diff ============================================================================== --- poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/text/AutonumberScheme.java (original) +++ poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/text/AutonumberScheme.java Sun Jan 17 17:31:22 2021 @@ -70,7 +70,7 @@ public enum AutonumberScheme { this.underlying = scheme; } - private final static HashMap<STTextAutonumberScheme.Enum, AutonumberScheme> reverse = new HashMap<>(); + private static final HashMap<STTextAutonumberScheme.Enum, AutonumberScheme> reverse = new HashMap<>(); static { for (AutonumberScheme value : values()) { reverse.put(value.underlying, value); Modified: poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/text/CapsType.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/text/CapsType.java?rev=1885613&r1=1885612&r2=1885613&view=diff ============================================================================== --- poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/text/CapsType.java (original) +++ poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/text/CapsType.java Sun Jan 17 17:31:22 2021 @@ -32,7 +32,7 @@ public enum CapsType { this.underlying = caps; } - private final static HashMap<STTextCapsType.Enum, CapsType> reverse = new HashMap<>(); + private static final HashMap<STTextCapsType.Enum, CapsType> reverse = new HashMap<>(); static { for (CapsType value : values()) { reverse.put(value.underlying, value); Modified: poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/text/FontAlignment.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/text/FontAlignment.java?rev=1885613&r1=1885612&r2=1885613&view=diff ============================================================================== --- poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/text/FontAlignment.java (original) +++ poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/text/FontAlignment.java Sun Jan 17 17:31:22 2021 @@ -34,7 +34,7 @@ public enum FontAlignment { this.underlying = align; } - private final static HashMap<STTextFontAlignType.Enum, FontAlignment> reverse = new HashMap<>(); + private static final HashMap<STTextFontAlignType.Enum, FontAlignment> reverse = new HashMap<>(); static { for (FontAlignment value : values()) { reverse.put(value.underlying, value); Modified: poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/text/StrikeType.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/text/StrikeType.java?rev=1885613&r1=1885612&r2=1885613&view=diff ============================================================================== --- poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/text/StrikeType.java (original) +++ poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/text/StrikeType.java Sun Jan 17 17:31:22 2021 @@ -32,7 +32,7 @@ public enum StrikeType { this.underlying = strike; } - private final static HashMap<STTextStrikeType.Enum, StrikeType> reverse = new HashMap<>(); + private static final HashMap<STTextStrikeType.Enum, StrikeType> reverse = new HashMap<>(); static { for (StrikeType value : values()) { reverse.put(value.underlying, value); Modified: poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/text/TabAlignment.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/text/TabAlignment.java?rev=1885613&r1=1885612&r2=1885613&view=diff ============================================================================== --- poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/text/TabAlignment.java (original) +++ poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/text/TabAlignment.java Sun Jan 17 17:31:22 2021 @@ -33,7 +33,7 @@ public enum TabAlignment { this.underlying = align; } - private final static HashMap<STTextTabAlignType.Enum, TabAlignment> reverse = new HashMap<>(); + private static final HashMap<STTextTabAlignType.Enum, TabAlignment> reverse = new HashMap<>(); static { for (TabAlignment value : values()) { reverse.put(value.underlying, value); Modified: poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/text/TextAlignment.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/text/TextAlignment.java?rev=1885613&r1=1885612&r2=1885613&view=diff ============================================================================== --- poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/text/TextAlignment.java (original) +++ poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/text/TextAlignment.java Sun Jan 17 17:31:22 2021 @@ -36,7 +36,7 @@ public enum TextAlignment { this.underlying = align; } - private final static HashMap<STTextAlignType.Enum, TextAlignment> reverse = new HashMap<>(); + private static final HashMap<STTextAlignType.Enum, TextAlignment> reverse = new HashMap<>(); static { for (TextAlignment value : values()) { reverse.put(value.underlying, value); Modified: poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/text/UnderlineType.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/text/UnderlineType.java?rev=1885613&r1=1885612&r2=1885613&view=diff ============================================================================== --- poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/text/UnderlineType.java (original) +++ poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/text/UnderlineType.java Sun Jan 17 17:31:22 2021 @@ -47,7 +47,7 @@ public enum UnderlineType { this.underlying = underline; } - private final static HashMap<STTextUnderlineType.Enum, UnderlineType> reverse = new HashMap<>(); + private static final HashMap<STTextUnderlineType.Enum, UnderlineType> reverse = new HashMap<>(); static { for (UnderlineType value : values()) { reverse.put(value.underlying, value); Modified: poi/trunk/src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFGroupShape.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFGroupShape.java?rev=1885613&r1=1885612&r2=1885613&view=diff ============================================================================== --- poi/trunk/src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFGroupShape.java (original) +++ poi/trunk/src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFGroupShape.java Sun Jan 17 17:31:22 2021 @@ -56,7 +56,7 @@ import org.openxmlformats.schemas.presen @Beta public class XSLFGroupShape extends XSLFShape implements XSLFShapeContainer, GroupShape<XSLFShape,XSLFTextParagraph> { - private final static POILogger _logger = POILogFactory.getLogger(XSLFGroupShape.class); + private static final POILogger LOG = POILogFactory.getLogger(XSLFGroupShape.class); private final List<XSLFShape> _shapes; private final CTGroupShapeProperties _grpSpPr; @@ -396,7 +396,7 @@ implements XSLFShapeContainer, GroupShap } else if (shape instanceof XSLFTable) { newShape = createTable(); } else { - _logger.log(POILogger.WARN, "copying of class "+shape.getClass()+" not supported."); + LOG.log(POILogger.WARN, "copying of class "+shape.getClass()+" not supported."); continue; } Modified: poi/trunk/src/ooxml/java/org/apache/poi/xssf/eventusermodel/XSSFSheetXMLHandler.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xssf/eventusermodel/XSSFSheetXMLHandler.java?rev=1885613&r1=1885612&r2=1885613&view=diff ============================================================================== --- poi/trunk/src/ooxml/java/org/apache/poi/xssf/eventusermodel/XSSFSheetXMLHandler.java (original) +++ poi/trunk/src/ooxml/java/org/apache/poi/xssf/eventusermodel/XSSFSheetXMLHandler.java Sun Jan 17 17:31:22 2021 @@ -48,7 +48,7 @@ import org.xml.sax.helpers.DefaultHandle * you need to implement for reading information from a file. */ public class XSSFSheetXMLHandler extends DefaultHandler { - private static final POILogger logger = POILogFactory.getLogger(XSSFSheetXMLHandler.class); + private static final POILogger LOG = POILogFactory.getLogger(XSSFSheetXMLHandler.class); /** * These are the different kinds of cells we support. @@ -63,7 +63,7 @@ public class XSSFSheetXMLHandler extends SST_STRING, NUMBER, } - + /** * Table with the styles used for formatting */ @@ -136,7 +136,7 @@ public class XSSFSheetXMLHandler extends this.formatter = dataFormatter; init(comments); } - + /** * Accepts objects needed while parsing. * @@ -151,7 +151,7 @@ public class XSSFSheetXMLHandler extends boolean formulasNotResults) { this(styles, null, strings, sheetContentsHandler, dataFormatter, formulasNotResults); } - + /** * Accepts objects needed while parsing. * @@ -165,7 +165,7 @@ public class XSSFSheetXMLHandler extends boolean formulasNotResults) { this(styles, strings, sheetContentsHandler, new DataFormatter(), formulasNotResults); } - + private void init(Comments commentsTable) { if (commentsTable != null) { commentCellRefs = new LinkedList<>(); @@ -191,7 +191,7 @@ public class XSSFSheetXMLHandler extends // It isn't a text tag return false; } - + @Override @SuppressWarnings("unused") public void startElement(String uri, String localName, String qName, @@ -211,29 +211,29 @@ public class XSSFSheetXMLHandler extends } else if ("f".equals(localName)) { // Clear contents cache formula.setLength(0); - + // Mark us as being a formula if not already if(nextDataType == xssfDataType.NUMBER) { nextDataType = xssfDataType.FORMULA; } - + // Decide where to get the formula string from String type = attributes.getValue("t"); if(type != null && type.equals("shared")) { // Is it the one that defines the shared, or uses it? String ref = attributes.getValue("ref"); String si = attributes.getValue("si"); - + if(ref != null) { // This one defines it // TODO Save it somewhere fIsOpen = true; } else { // This one uses a shared formula - // TODO Retrieve the shared formula and tweak it to + // TODO Retrieve the shared formula and tweak it to // match the current cell if(formulasNotResults) { - logger.log(POILogger.WARN, "shared formulas not yet supported!"); + LOG.log(POILogger.WARN, "shared formulas not yet supported!"); } /*else { // It's a shared formula, so we can't get at the formula string yet // However, they don't care about the formula string, so that's ok! @@ -312,7 +312,7 @@ public class XSSFSheetXMLHandler extends // v => contents of a cell if (isTextTag(localName)) { vIsOpen = false; - + // Process the value contents as required, now we have it all switch (nextDataType) { case BOOLEAN: @@ -329,7 +329,7 @@ public class XSSFSheetXMLHandler extends thisStr = formula.toString(); } else { String fv = value.toString(); - + if (this.formatString != null) { try { // Try to use the value as a formattable number @@ -360,7 +360,7 @@ public class XSSFSheetXMLHandler extends thisStr = rtss.toString(); } catch (NumberFormatException ex) { - logger.log(POILogger.ERROR, "Failed to parse SST index '", sstIndex, ex); + LOG.log(POILogger.ERROR, "Failed to parse SST index '", sstIndex, ex); } break; @@ -376,11 +376,11 @@ public class XSSFSheetXMLHandler extends thisStr = "(TODO: Unexpected type: " + nextDataType + ")"; break; } - + // Do we have a comment for this cell? checkForEmptyCellComments(EmptyCellCommentsCheckType.CELL); XSSFComment comment = comments != null ? comments.findCellComment(new CellAddress(cellRef)) : null; - + // Output output.cell(cellRef, thisStr, comment); } else if ("f".equals(localName)) { @@ -390,10 +390,10 @@ public class XSSFSheetXMLHandler extends } else if ("row".equals(localName)) { // Handle any "missing" cells which had comments attached checkForEmptyCellComments(EmptyCellCommentsCheckType.END_OF_ROW); - + // Finish up the row output.endRow(rowNum); - + // some sheets do not have rowNum set in the XML, Excel can read them so we should try to read them as well nextRowNum = rowNum + 1; } else if ("sheetData".equals(localName)) { @@ -432,7 +432,7 @@ public class XSSFSheetXMLHandler extends headerFooter.append(ch, start, length); } } - + /** * Do a check for, and output, comments in otherwise empty cells. */ @@ -496,7 +496,7 @@ public class XSSFSheetXMLHandler extends XSSFComment comment = comments.findCellComment(cellRef); output.cell(cellRef.formatAsString(), null, comment); } - + private enum EmptyCellCommentsCheckType { CELL, END_OF_ROW, @@ -520,7 +520,7 @@ public class XSSFSheetXMLHandler extends void endRow(int rowNum); /** - * A cell, with the given formatted value (may be null), + * A cell, with the given formatted value (may be null), * and possibly a comment (may be null), was encountered. * * Sheets that have missing or empty cells may result in Modified: poi/trunk/src/ooxml/java/org/apache/poi/xssf/extractor/XSSFImportFromXML.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xssf/extractor/XSSFImportFromXML.java?rev=1885613&r1=1885612&r2=1885613&view=diff ============================================================================== --- poi/trunk/src/ooxml/java/org/apache/poi/xssf/extractor/XSSFImportFromXML.java (original) +++ poi/trunk/src/ooxml/java/org/apache/poi/xssf/extractor/XSSFImportFromXML.java Sun Jan 17 17:31:22 2021 @@ -70,7 +70,7 @@ public class XSSFImportFromXML { private final XSSFMap _map; - private static final POILogger logger = POILogFactory.getLogger(XSSFImportFromXML.class); + private static final POILogger LOG = POILogFactory.getLogger(XSSFImportFromXML.class); public XSSFImportFromXML(XSSFMap map) { _map = map; @@ -109,9 +109,9 @@ public class XSSFImportFromXML { // result can be null if value is optional (xsd:minOccurs=0), see bugzilla 55864 if (result != null) { String textContent = result.getTextContent(); - logger.log(POILogger.DEBUG, "Extracting with xpath " + xpathString + " : value is '" + textContent + "'"); + LOG.log(POILogger.DEBUG, "Extracting with xpath " + xpathString + " : value is '" + textContent + "'"); XSSFCell cell = singleXmlCell.getReferencedCell(); - logger.log(POILogger.DEBUG, "Setting '" + textContent + "' to cell " + cell.getColumnIndex() + "-" + cell.getRowIndex() + " in sheet " + LOG.log(POILogger.DEBUG, "Setting '" + textContent + "' to cell " + cell.getColumnIndex() + "-" + cell.getRowIndex() + " in sheet " + cell.getSheet().getSheetName()); setCellValue(textContent, cell, xmlDataType); } @@ -147,7 +147,7 @@ public class XSSFImportFromXML { // TODO: convert the data to the cell format String value = (String) xpath.evaluate(localXPath, singleNode, XPathConstants.STRING); - logger.log(POILogger.DEBUG, "Extracting with xpath " + localXPath + " : value is '" + value + "'"); + LOG.log(POILogger.DEBUG, "Extracting with xpath " + localXPath + " : value is '" + value + "'"); XSSFRow row = table.getXSSFSheet().getRow(rowId); if (row == null) { row = table.getXSSFSheet().createRow(rowId); @@ -157,7 +157,7 @@ public class XSSFImportFromXML { if (cell == null) { cell = row.createCell(columnId); } - logger.log(POILogger.DEBUG, "Setting '" + value + "' to cell " + cell.getColumnIndex() + "-" + cell.getRowIndex() + " in sheet " + LOG.log(POILogger.DEBUG, "Setting '" + value + "' to cell " + cell.getColumnIndex() + "-" + cell.getRowIndex() + " in sheet " + table.getXSSFSheet().getSheetName()); setCellValue(value, cell, xmlColumnPr.getXmlDataType()); } Modified: poi/trunk/src/ooxml/java/org/apache/poi/xssf/streaming/DeferredSXSSFWorkbook.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xssf/streaming/DeferredSXSSFWorkbook.java?rev=1885613&r1=1885612&r2=1885613&view=diff ============================================================================== --- poi/trunk/src/ooxml/java/org/apache/poi/xssf/streaming/DeferredSXSSFWorkbook.java (original) +++ poi/trunk/src/ooxml/java/org/apache/poi/xssf/streaming/DeferredSXSSFWorkbook.java Sun Jan 17 17:31:22 2021 @@ -32,25 +32,25 @@ import org.apache.poi.xssf.usermodel.XSS /** * An variant of SXSSFWorkbook that avoids generating a temporary file and writes data directly to * the provided OutputStream. - * + * * This variant is experimental and APIs may change at short notice. - * + * * @since 5.0.0 */ @Beta public class DeferredSXSSFWorkbook extends SXSSFWorkbook { - private static final POILogger logger = POILogFactory.getLogger(DeferredSXSSFWorkbook.class); - + private static final POILogger LOG = POILogFactory.getLogger(DeferredSXSSFWorkbook.class); + public DeferredSXSSFWorkbook() { this(null); } public DeferredSXSSFWorkbook(int rowAccessWindowSize) { this(null, rowAccessWindowSize); } - + public DeferredSXSSFWorkbook(XSSFWorkbook workbook) { this(workbook, SXSSFWorkbook.DEFAULT_WINDOW_SIZE); } - + public DeferredSXSSFWorkbook(XSSFWorkbook workbook, int rowAccessWindowSize) { super(workbook, rowAccessWindowSize, false, false); } @@ -60,11 +60,11 @@ public class DeferredSXSSFWorkbook exten protected SheetDataWriter createSheetDataWriter() throws IOException { throw new RuntimeException("Not supported by DeferredSXSSFWorkbook"); } - + protected StreamingSheetWriter createSheetDataWriter(OutputStream out) throws IOException { return new StreamingSheetWriter(out); } - + @Override protected ISheetInjector createSheetInjector(SXSSFSheet sxSheet) throws IOException { DeferredSXSSFSheet ssxSheet = (DeferredSXSSFSheet) sxSheet; @@ -72,7 +72,7 @@ public class DeferredSXSSFWorkbook exten ssxSheet.writeRows(output); }; } - + @Override SXSSFSheet createAndRegisterSXSSFSheet(XSSFSheet xSheet) { final DeferredSXSSFSheet sxSheet; @@ -84,15 +84,15 @@ public class DeferredSXSSFWorkbook exten registerSheetMapping(sxSheet, xSheet); return sxSheet; } - + public DeferredSXSSFSheet createSheet() { return (DeferredSXSSFSheet) super.createSheet(); } - + public DeferredSXSSFSheet createSheet(String sheetname) { return (DeferredSXSSFSheet) super.createSheet(sheetname); } - + /** * Returns an iterator of the sheets in the workbook in sheet order. Includes hidden and very hidden sheets. * @@ -102,7 +102,7 @@ public class DeferredSXSSFWorkbook exten public Iterator<Sheet> sheetIterator() { return new SheetIterator<>(); } - + /** * Gets the sheet at the given index for streaming. * @@ -118,11 +118,11 @@ public class DeferredSXSSFWorkbook exten return (DeferredSXSSFSheet) sxSheet; } } - + public XSSFSheet getXSSFSheet(String name) { return _wb.getSheet(name); } - + /** * Gets sheet with the given name for streaming. * @@ -138,7 +138,7 @@ public class DeferredSXSSFWorkbook exten return sxSheet; } } - + /** * Removes sheet at the given index * @@ -149,19 +149,19 @@ public class DeferredSXSSFWorkbook exten // Get the sheet to be removed XSSFSheet xSheet = _wb.getSheetAt(index); SXSSFSheet sxSheet = getSXSSFSheet(xSheet); - + // De-register it _wb.removeSheetAt(index); - + // The sheet may not be a streaming sheet and is not mapped if (sxSheet != null) { deregisterSheetMapping(xSheet); - + // Clean up temporary resources try { sxSheet.dispose(); } catch (IOException e) { - logger.log(POILogger.WARN, e); + LOG.log(POILogger.WARN, e); } } } Modified: poi/trunk/src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFCreationHelper.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFCreationHelper.java?rev=1885613&r1=1885612&r2=1885613&view=diff ============================================================================== --- poi/trunk/src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFCreationHelper.java (original) +++ poi/trunk/src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFCreationHelper.java Sun Jan 17 17:31:22 2021 @@ -37,11 +37,11 @@ import org.apache.poi.xssf.usermodel.XSS * regular XSSF Workbook */ public class SXSSFCreationHelper implements CreationHelper { - private static final POILogger logger = POILogFactory.getLogger(SXSSFCreationHelper.class); - + private static final POILogger LOG = POILogFactory.getLogger(SXSSFCreationHelper.class); + private final SXSSFWorkbook wb; private final XSSFCreationHelper helper; - + /** * Should only be called by {@link SXSSFWorkbook#getCreationHelper()} * @@ -55,7 +55,7 @@ public class SXSSFCreationHelper impleme @Override public XSSFRichTextString createRichTextString(String text) { - logger.log(POILogger.INFO, "SXSSF doesn't support Rich Text Strings, any formatting information will be lost"); + LOG.log(POILogger.INFO, "SXSSF doesn't support Rich Text Strings, any formatting information will be lost"); return new XSSFRichTextString(text); } @@ -81,7 +81,7 @@ public class SXSSFCreationHelper impleme public ClientAnchor createClientAnchor() { return helper.createClientAnchor(); } - + /** * {@inheritDoc} */ Modified: poi/trunk/src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFFormulaEvaluator.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFFormulaEvaluator.java?rev=1885613&r1=1885612&r2=1885613&view=diff ============================================================================== --- poi/trunk/src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFFormulaEvaluator.java (original) +++ poi/trunk/src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFFormulaEvaluator.java Sun Jan 17 17:31:22 2021 @@ -30,14 +30,14 @@ import org.apache.poi.util.POILogger; import org.apache.poi.xssf.usermodel.BaseXSSFFormulaEvaluator; /** - * Streaming-specific Formula Evaluator, which is able to + * Streaming-specific Formula Evaluator, which is able to * lookup cells within the current Window. */ public final class SXSSFFormulaEvaluator extends BaseXSSFFormulaEvaluator { - private static final POILogger logger = POILogFactory.getLogger(SXSSFFormulaEvaluator.class); - - private SXSSFWorkbook wb; - + private static final POILogger LOG = POILogFactory.getLogger(SXSSFFormulaEvaluator.class); + + private final SXSSFWorkbook wb; + public SXSSFFormulaEvaluator(SXSSFWorkbook workbook) { this(workbook, null, null); } @@ -48,7 +48,7 @@ public final class SXSSFFormulaEvaluator super(bookEvaluator); this.wb = workbook; } - + /** * @param stabilityClassifier used to optimise caching performance. Pass <code>null</code> * for the (conservative) assumption that any cell may have its definition changed after @@ -81,12 +81,12 @@ public final class SXSSFFormulaEvaluator return new SXSSFEvaluationCell((SXSSFCell)cell); } - + @Override public SXSSFCell evaluateInCell(Cell cell) { return (SXSSFCell) super.evaluateInCell(cell); } - + /** * For active worksheets only, will loop over rows and * cells, evaluating formula cells there. @@ -95,26 +95,26 @@ public final class SXSSFFormulaEvaluator */ public static void evaluateAllFormulaCells(SXSSFWorkbook wb, boolean skipOutOfWindow) { SXSSFFormulaEvaluator eval = new SXSSFFormulaEvaluator(wb); - + // Check they're all available for (Sheet sheet : wb) { if (((SXSSFSheet)sheet).areAllRowsFlushed()) { throw new SheetsFlushedException(); } } - + // Process the sheets as best we can for (Sheet sheet : wb) { - + if (sheet instanceof SXSSFSheet) { // Check if any rows have already been flushed out int lastFlushedRowNum = ((SXSSFSheet) sheet).getLastFlushedRowNum(); if (lastFlushedRowNum > -1) { if (! skipOutOfWindow) throw new RowFlushedException(0); - logger.log(POILogger.INFO, "Rows up to ", lastFlushedRowNum, " have already been flushed, skipping"); + LOG.log(POILogger.INFO, "Rows up to ", lastFlushedRowNum, " have already been flushed, skipping"); } } - + // Evaluate what we have for (Row r : sheet) { for (Cell c : r) { @@ -125,7 +125,7 @@ public final class SXSSFFormulaEvaluator } } } - + /** * Loops over rows and cells, evaluating formula cells there. * If any sheets are inactive, or any cells outside of the window, @@ -137,7 +137,7 @@ public final class SXSSFFormulaEvaluator // Have the evaluation done, with exceptions evaluateAllFormulaCells(wb, false); } - + public static class SheetsFlushedException extends IllegalStateException { protected SheetsFlushedException() { super("One or more sheets have been flushed, cannot evaluate all cells"); Modified: poi/trunk/src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFPicture.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFPicture.java?rev=1885613&r1=1885612&r2=1885613&view=diff ============================================================================== --- poi/trunk/src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFPicture.java (original) +++ poi/trunk/src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFPicture.java Sun Jan 17 17:31:22 2021 @@ -50,7 +50,7 @@ import org.openxmlformats.schemas.spread * The main change is to access the rows in the SXSSF sheet, not the always empty rows in the XSSF sheet when checking the row heights. */ public final class SXSSFPicture implements Picture { - private static final POILogger logger = POILogFactory.getLogger(SXSSFPicture.class); + private static final POILogger LOG = POILogFactory.getLogger(SXSSFPicture.class); /** * Column width measured as the number of characters of the maximum digit width of the * numbers 0, 1, 2, ..., 9 as rendered in the normal style's font. There are 4 pixels of margin @@ -58,7 +58,7 @@ public final class SXSSFPicture implemen * * This value is the same for default font in Office 2007 (Calibri) and Office 2003 and earlier (Arial) */ - private static float DEFAULT_COLUMN_WIDTH = 9.140625f; + private static final float DEFAULT_COLUMN_WIDTH = 9.140625f; private final SXSSFWorkbook _wb; private final XSSFPicture _picture; @@ -109,7 +109,7 @@ public final class SXSSFPicture implemen XSSFClientAnchor anchor = getClientAnchor(); XSSFClientAnchor pref = getPreferredSize(scale); if (anchor == null || pref == null) { - logger.log(POILogger.WARN, "picture is not anchored via client anchor - ignoring resize call"); + LOG.log(POILogger.WARN, "picture is not anchored via client anchor - ignoring resize call"); return; } @@ -144,7 +144,7 @@ public final class SXSSFPicture implemen public XSSFClientAnchor getPreferredSize(double scale){ XSSFClientAnchor anchor = getClientAnchor(); if (anchor == null) { - logger.log(POILogger.WARN, "picture is not anchored via client anchor - ignoring resize call"); + LOG.log(POILogger.WARN, "picture is not anchored via client anchor - ignoring resize call"); return null; } @@ -222,7 +222,7 @@ public final class SXSSFPicture implemen return ImageUtils.getImageDimension(part.getInputStream(), type); } catch (IOException e){ //return a "singulariry" if ImageIO failed to read the image - logger.log(POILogger.WARN, e); + LOG.log(POILogger.WARN, e); return new Dimension(); } } @@ -266,7 +266,7 @@ public final class SXSSFPicture implemen XSSFAnchor a = getAnchor(); return (a instanceof XSSFClientAnchor) ? (XSSFClientAnchor)a : null; } - + public XSSFDrawing getDrawing() { return _picture.getDrawing(); } @@ -300,7 +300,7 @@ public final class SXSSFPicture implemen public void setFillColor(int red, int green, int blue) { _picture.setFillColor(red, green, blue); } - + @Override public void setLineStyleColor( int red, int green, int blue ) { _picture.setLineStyleColor(red, green, blue); Modified: poi/trunk/src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFWorkbook.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFWorkbook.java?rev=1885613&r1=1885612&r2=1885613&view=diff ============================================================================== --- poi/trunk/src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFWorkbook.java (original) +++ poi/trunk/src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFWorkbook.java Sun Jan 17 17:31:22 2021 @@ -102,7 +102,7 @@ public class SXSSFWorkbook implements Wo * via {@link SXSSFSheet#getRow} anymore. */ public static final int DEFAULT_WINDOW_SIZE = 100; - private static final POILogger logger = POILogFactory.getLogger(SXSSFWorkbook.class); + private static final POILogger LOG = POILogFactory.getLogger(SXSSFWorkbook.class); protected final XSSFWorkbook _wb; @@ -839,7 +839,7 @@ public class SXSSFWorkbook implements Wo try { sxSheet.dispose(); } catch (IOException e) { - logger.log(POILogger.WARN, e); + LOG.log(POILogger.WARN, e); } } @@ -935,7 +935,7 @@ public class SXSSFWorkbook implements Wo SheetDataWriter _writer = sheet.getSheetDataWriter(); if (_writer != null) _writer.close(); } catch (IOException e) { - logger.log(POILogger.WARN, + LOG.log(POILogger.WARN, "An exception occurred while closing sheet data writer for sheet " + sheet.getSheetName() + ".", e); } @@ -998,7 +998,7 @@ public class SXSSFWorkbook implements Wo try { success = sheet.dispose() && success; } catch (IOException e) { - logger.log(POILogger.WARN, e); + LOG.log(POILogger.WARN, e); success = false; } } Modified: poi/trunk/src/ooxml/java/org/apache/poi/xssf/streaming/SheetDataWriter.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xssf/streaming/SheetDataWriter.java?rev=1885613&r1=1885612&r2=1885613&view=diff ============================================================================== --- poi/trunk/src/ooxml/java/org/apache/poi/xssf/streaming/SheetDataWriter.java (original) +++ poi/trunk/src/ooxml/java/org/apache/poi/xssf/streaming/SheetDataWriter.java Sun Jan 17 17:31:22 2021 @@ -52,7 +52,7 @@ import org.openxmlformats.schemas.spread * so that it was renamed to "SheetDataWriter" */ public class SheetDataWriter implements Closeable { - private static final POILogger logger = POILogFactory.getLogger(SheetDataWriter.class); + private static final POILogger LOG = POILogFactory.getLogger(SheetDataWriter.class); private final File _fd; protected final Writer _out; @@ -186,7 +186,7 @@ public class SheetDataWriter implements @Override protected void finalize() throws Throwable { if (_fd.exists() && !_fd.delete()) { - logger.log(POILogger.ERROR, "Can't delete temporary encryption file: ", _fd); + LOG.log(POILogger.ERROR, "Can't delete temporary encryption file: ", _fd); } } Modified: poi/trunk/src/ooxml/java/org/apache/poi/xssf/streaming/StreamingSheetWriter.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xssf/streaming/StreamingSheetWriter.java?rev=1885613&r1=1885612&r2=1885613&view=diff ============================================================================== --- poi/trunk/src/ooxml/java/org/apache/poi/xssf/streaming/StreamingSheetWriter.java (original) +++ poi/trunk/src/ooxml/java/org/apache/poi/xssf/streaming/StreamingSheetWriter.java Sun Jan 17 17:31:22 2021 @@ -36,46 +36,46 @@ import org.apache.poi.util.POILogger; */ @Beta public class StreamingSheetWriter extends SheetDataWriter { - private static final POILogger logger = POILogFactory.getLogger(StreamingSheetWriter.class); - + private static final POILogger LOG = POILogFactory.getLogger(StreamingSheetWriter.class); + public StreamingSheetWriter() throws IOException { throw new RuntimeException("StreamingSheetWriter requires OutputStream"); } - + public StreamingSheetWriter(OutputStream out) throws IOException { super(createWriter(out)); - logger.log(POILogger.DEBUG, "Preparing SSXSSF sheet writer"); + LOG.log(POILogger.DEBUG, "Preparing SSXSSF sheet writer"); } - + @Override public File createTempFile() throws IOException { throw new RuntimeException("Not supported with StreamingSheetWriter"); } - + @Override public Writer createWriter(File fd) throws IOException { throw new RuntimeException("Not supported with StreamingSheetWriter"); } - + /** * Create a writer for the sheet data. - * + * * @param out the output stream to write to */ protected static Writer createWriter(OutputStream out) throws IOException { return new BufferedWriter(new OutputStreamWriter(out, "UTF-8")); } - + @Override public void close() throws IOException { _out.flush(); } - + @Override public InputStream getWorksheetXMLInputStream() throws IOException { throw new RuntimeException("Not supported with StreamingSheetWriter"); } - + @Override boolean dispose() throws IOException { _out.close(); Modified: poi/trunk/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFPicture.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFPicture.java?rev=1885613&r1=1885612&r2=1885613&view=diff ============================================================================== --- poi/trunk/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFPicture.java (original) +++ poi/trunk/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFPicture.java Sun Jan 17 17:31:22 2021 @@ -46,7 +46,7 @@ import org.openxmlformats.schemas.drawin * @author Yegor Kozlov */ public final class XSSFPicture extends XSSFShape implements Picture { - private static final POILogger logger = POILogFactory.getLogger(XSSFPicture.class); + private static final POILogger LOG = POILogFactory.getLogger(XSSFPicture.class); /** * Column width measured as the number of characters of the maximum digit width of the @@ -154,7 +154,7 @@ public final class XSSFPicture extends X public void resize(double scale) { resize(scale, scale); } - + /** * Resize the image relatively to its current size. * <p> @@ -166,7 +166,7 @@ public final class XSSFPicture extends X * <code>resize(1.0,1.0)</code> keeps the original size,<br> * <code>resize(0.5,0.5)</code> resize to 50% of the original,<br> * <code>resize(2.0,2.0)</code> resizes to 200% of the original.<br> - * <code>resize({@link Double#MAX_VALUE},{@link Double#MAX_VALUE})</code> resizes to the dimension of the embedded image. + * <code>resize({@link Double#MAX_VALUE},{@link Double#MAX_VALUE})</code> resizes to the dimension of the embedded image. * </p> * * @param scaleX the amount by which the image width is multiplied relative to the original width, @@ -178,7 +178,7 @@ public final class XSSFPicture extends X XSSFClientAnchor anchor = getClientAnchor(); XSSFClientAnchor pref = getPreferredSize(scaleX,scaleY); if (anchor == null || pref == null) { - logger.log(POILogger.WARN, "picture is not anchored via client anchor - ignoring resize call"); + LOG.log(POILogger.WARN, "picture is not anchored via client anchor - ignoring resize call"); return; } @@ -212,7 +212,7 @@ public final class XSSFPicture extends X public XSSFClientAnchor getPreferredSize(double scale){ return getPreferredSize(scale, scale); } - + /** * Calculate the preferred size for this picture. * @@ -242,7 +242,7 @@ public final class XSSFPicture extends X return ImageUtils.getImageDimension(part.getInputStream(), type); } catch (IOException e){ //return a "singulariry" if ImageIO failed to read the image - logger.log(POILogger.WARN, e); + LOG.log(POILogger.WARN, e); return new Dimension(); } } @@ -256,7 +256,7 @@ public final class XSSFPicture extends X XSSFPictureData picData = getPictureData(); return getImageDimension(picData.getPackagePart(), picData.getPictureType()); } - + /** * Return picture data for this shape * --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
