diff options
author | Dominik Stadler <centic@apache.org> | 2017-09-17 11:08:23 +0000 |
---|---|---|
committer | Dominik Stadler <centic@apache.org> | 2017-09-17 11:08:23 +0000 |
commit | 467053d91cf5ec1d48cfa979f82032ca7267f441 (patch) | |
tree | 9a3e8f3de0249ac1a8b5eec1defae2f8947fa880 /src/java/org/apache/poi/hssf/util | |
parent | ec42ec1053cdd849923bcbc0ad99ec0613a34af5 (diff) | |
download | poi-467053d91cf5ec1d48cfa979f82032ca7267f441.tar.gz poi-467053d91cf5ec1d48cfa979f82032ca7267f441.zip |
Various code cleanups, "final" for static methods is useless, for-loops, simplify boolean conditions, try-with-resource, javadoc, ...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1808620 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/poi/hssf/util')
-rw-r--r-- | src/java/org/apache/poi/hssf/util/HSSFColor.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/java/org/apache/poi/hssf/util/HSSFColor.java b/src/java/org/apache/poi/hssf/util/HSSFColor.java index 1490abf791..3c0ba6a9ce 100644 --- a/src/java/org/apache/poi/hssf/util/HSSFColor.java +++ b/src/java/org/apache/poi/hssf/util/HSSFColor.java @@ -168,7 +168,7 @@ public class HSSFColor implements Color { * * @return a Map containing all colours keyed by <tt>Integer</tt> excel-style palette indexes */ - public static final synchronized Map<Integer,HSSFColor> getIndexHash() { + public static synchronized Map<Integer,HSSFColor> getIndexHash() { if(indexHash == null) { indexHash = Collections.unmodifiableMap( createColorsByIndexMap() ); } @@ -181,7 +181,7 @@ public class HSSFColor implements Color { * the table, then call {@link #getIndexHash()} which returns a * statically cached immutable map of colours. */ - public static final Map<Integer,HSSFColor> getMutableIndexHash() { + public static Map<Integer,HSSFColor> getMutableIndexHash() { return createColorsByIndexMap(); } |