findbugs fixes - ME_MUTABLE_ENUM_FIELD

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1749116 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Andreas Beeker 2016-06-19 01:06:55 +00:00
parent ef0da84237
commit 23baf09e91
5 changed files with 15 additions and 15 deletions

View File

@ -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);

View File

@ -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;

View File

@ -57,7 +57,7 @@ public class HwmfFill {
;
int flag;
public final int flag;
ColorUsage(int flag) {
this.flag = flag;
}
@ -208,8 +208,8 @@ public class HwmfFill {
*/
WINDING(0x0002, Path2D.WIND_NON_ZERO);
public int wmfFlag;
public int awtFlag;
public final int wmfFlag;
public final int awtFlag;
HwmfPolyfillMode(int wmfFlag, int awtFlag) {
this.wmfFlag = wmfFlag;
this.awtFlag = awtFlag;

View File

@ -41,8 +41,8 @@ public class HwmfPenStyle implements Cloneable {
/** Line ends at end point*/
FLAT(2, BasicStroke.CAP_BUTT);
public int wmfFlag;
public int awtFlag;
public final int wmfFlag;
public final int awtFlag;
HwmfLineCap(int wmfFlag, int awtFlag) {
this.wmfFlag = wmfFlag;
this.awtFlag = awtFlag;
@ -67,8 +67,8 @@ public class HwmfPenStyle implements Cloneable {
*/
MITER(2, BasicStroke.JOIN_MITER);
public int wmfFlag;
public int awtFlag;
public final int wmfFlag;
public final int awtFlag;
HwmfLineJoin(int wmfFlag, int awtFlag) {
this.wmfFlag = wmfFlag;
this.awtFlag = awtFlag;
@ -121,8 +121,8 @@ public class HwmfPenStyle implements Cloneable {
USERSTYLE(0x0007, null);
public int wmfFlag;
public float[] dashes;
public final int wmfFlag;
public final float[] dashes;
HwmfLineDash(int wmfFlag, float... dashes) {
this.wmfFlag = wmfFlag;
this.dashes = dashes;

View File

@ -95,8 +95,8 @@ public enum HwmfRecordType {
,textOut(0x0521, HwmfText.WmfTextOut.class)
;
public int id;
public Class<? extends HwmfRecord> clazz;
public final int id;
public final Class<? extends HwmfRecord> clazz;
HwmfRecordType(int id, Class<? extends HwmfRecord> clazz) {
this.id = id;