make private maps final

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1753018 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Javen O'Neal 2016-07-17 07:29:40 +00:00
parent 0de74b143e
commit 202dfbf92e
1 changed files with 3 additions and 3 deletions

View File

@ -147,9 +147,9 @@ public enum FormulaError {
return repr; return repr;
} }
private static Map<String, FormulaError> smap = new HashMap<String, FormulaError>(); private static final Map<String, FormulaError> smap = new HashMap<String, FormulaError>();
private static Map<Byte, FormulaError> bmap = new HashMap<Byte, FormulaError>(); private static final Map<Byte, FormulaError> bmap = new HashMap<Byte, FormulaError>();
private static Map<Integer, FormulaError> imap = new HashMap<Integer, FormulaError>(); private static final Map<Integer, FormulaError> imap = new HashMap<Integer, FormulaError>();
static{ static{
for (FormulaError error : values()) { for (FormulaError error : values()) {
bmap.put(error.getCode(), error); bmap.put(error.getCode(), error);