diff options
author | Andreas Beeker <kiwiwings@apache.org> | 2016-06-19 01:06:55 +0000 |
---|---|---|
committer | Andreas Beeker <kiwiwings@apache.org> | 2016-06-19 01:06:55 +0000 |
commit | 23baf09e91969ec1298c7875341615792c930ddf (patch) | |
tree | 6aa7604b53aaa7520bbf50f9836c056b07a88e6a /src/java/org/apache/poi | |
parent | ef0da842378f5398e7b6b955e77ee36d6679faae (diff) | |
download | poi-23baf09e91969ec1298c7875341615792c930ddf.tar.gz poi-23baf09e91969ec1298c7875341615792c930ddf.zip |
findbugs fixes - ME_MUTABLE_ENUM_FIELD
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1749116 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/poi')
-rw-r--r-- | src/java/org/apache/poi/sl/usermodel/PresetColor.java | 6 | ||||
-rw-r--r-- | src/java/org/apache/poi/ss/usermodel/ConditionalFormattingThreshold.java | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/java/org/apache/poi/sl/usermodel/PresetColor.java b/src/java/org/apache/poi/sl/usermodel/PresetColor.java index 72e9fc661f..f78dbca406 100644 --- a/src/java/org/apache/poi/sl/usermodel/PresetColor.java +++ b/src/java/org/apache/poi/sl/usermodel/PresetColor.java @@ -247,9 +247,9 @@ public enum PresetColor { MenuHighlight (0xff3399ff, 174, "menuHighlight")
;
- public Color color;
- public int nativeId;
- public String ooxmlId;
+ public final Color color;
+ public final int nativeId;
+ public final String ooxmlId;
PresetColor(Integer rgb, int nativeId, String ooxmlId) {
this.color = (rgb == null) ? null : new Color(rgb, true);
diff --git a/src/java/org/apache/poi/ss/usermodel/ConditionalFormattingThreshold.java b/src/java/org/apache/poi/ss/usermodel/ConditionalFormattingThreshold.java index 8f2ecaf526..a5e52b1b3a 100644 --- a/src/java/org/apache/poi/ss/usermodel/ConditionalFormattingThreshold.java +++ b/src/java/org/apache/poi/ss/usermodel/ConditionalFormattingThreshold.java @@ -43,7 +43,7 @@ public interface ConditionalFormattingThreshold { FORMULA(7, "formula");
/** Numeric ID of the type */
- public int id;
+ public final int id;
/** Name (system) of the type */
public final String name;
|