poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From one...@apache.org
Subject svn commit: r1753018 - /poi/trunk/src/java/org/apache/poi/ss/usermodel/FormulaError.java
Date Sun, 17 Jul 2016 07:29:40 GMT
Author: onealj
Date: Sun Jul 17 07:29:40 2016
New Revision: 1753018

URL: http://svn.apache.org/viewvc?rev=1753018&view=rev
Log:
make private maps final

Modified:
    poi/trunk/src/java/org/apache/poi/ss/usermodel/FormulaError.java

Modified: poi/trunk/src/java/org/apache/poi/ss/usermodel/FormulaError.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/java/org/apache/poi/ss/usermodel/FormulaError.java?rev=1753018&r1=1753017&r2=1753018&view=diff
==============================================================================
--- poi/trunk/src/java/org/apache/poi/ss/usermodel/FormulaError.java (original)
+++ poi/trunk/src/java/org/apache/poi/ss/usermodel/FormulaError.java Sun Jul 17 07:29:40 2016
@@ -147,9 +147,9 @@ public enum FormulaError {
         return repr;
     }
 
-    private static Map<String, FormulaError> smap = new HashMap<String, FormulaError>();
-    private static Map<Byte, FormulaError> bmap = new HashMap<Byte, FormulaError>();
-    private static Map<Integer, FormulaError> imap = new HashMap<Integer, FormulaError>();
+    private static final Map<String, FormulaError> smap = new HashMap<String, FormulaError>();
+    private static final Map<Byte, FormulaError> bmap = new HashMap<Byte, FormulaError>();
+    private static final Map<Integer, FormulaError> imap = new HashMap<Integer,
FormulaError>();
     static{
         for (FormulaError error : values()) {
             bmap.put(error.getCode(), error);



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org


Mime
View raw message