mirror of https://github.com/apache/poi.git
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:
parent
ef0da84237
commit
23baf09e91
|
@ -247,9 +247,9 @@ public enum PresetColor {
|
||||||
MenuHighlight (0xff3399ff, 174, "menuHighlight")
|
MenuHighlight (0xff3399ff, 174, "menuHighlight")
|
||||||
;
|
;
|
||||||
|
|
||||||
public Color color;
|
public final Color color;
|
||||||
public int nativeId;
|
public final int nativeId;
|
||||||
public String ooxmlId;
|
public final String ooxmlId;
|
||||||
|
|
||||||
PresetColor(Integer rgb, int nativeId, String ooxmlId) {
|
PresetColor(Integer rgb, int nativeId, String ooxmlId) {
|
||||||
this.color = (rgb == null) ? null : new Color(rgb, true);
|
this.color = (rgb == null) ? null : new Color(rgb, true);
|
||||||
|
|
|
@ -43,7 +43,7 @@ public interface ConditionalFormattingThreshold {
|
||||||
FORMULA(7, "formula");
|
FORMULA(7, "formula");
|
||||||
|
|
||||||
/** Numeric ID of the type */
|
/** Numeric ID of the type */
|
||||||
public int id;
|
public final int id;
|
||||||
/** Name (system) of the type */
|
/** Name (system) of the type */
|
||||||
public final String name;
|
public final String name;
|
||||||
|
|
||||||
|
|
|
@ -57,7 +57,7 @@ public class HwmfFill {
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|
||||||
int flag;
|
public final int flag;
|
||||||
ColorUsage(int flag) {
|
ColorUsage(int flag) {
|
||||||
this.flag = flag;
|
this.flag = flag;
|
||||||
}
|
}
|
||||||
|
@ -208,8 +208,8 @@ public class HwmfFill {
|
||||||
*/
|
*/
|
||||||
WINDING(0x0002, Path2D.WIND_NON_ZERO);
|
WINDING(0x0002, Path2D.WIND_NON_ZERO);
|
||||||
|
|
||||||
public int wmfFlag;
|
public final int wmfFlag;
|
||||||
public int awtFlag;
|
public final int awtFlag;
|
||||||
HwmfPolyfillMode(int wmfFlag, int awtFlag) {
|
HwmfPolyfillMode(int wmfFlag, int awtFlag) {
|
||||||
this.wmfFlag = wmfFlag;
|
this.wmfFlag = wmfFlag;
|
||||||
this.awtFlag = awtFlag;
|
this.awtFlag = awtFlag;
|
||||||
|
|
|
@ -41,8 +41,8 @@ public class HwmfPenStyle implements Cloneable {
|
||||||
/** Line ends at end point*/
|
/** Line ends at end point*/
|
||||||
FLAT(2, BasicStroke.CAP_BUTT);
|
FLAT(2, BasicStroke.CAP_BUTT);
|
||||||
|
|
||||||
public int wmfFlag;
|
public final int wmfFlag;
|
||||||
public int awtFlag;
|
public final int awtFlag;
|
||||||
HwmfLineCap(int wmfFlag, int awtFlag) {
|
HwmfLineCap(int wmfFlag, int awtFlag) {
|
||||||
this.wmfFlag = wmfFlag;
|
this.wmfFlag = wmfFlag;
|
||||||
this.awtFlag = awtFlag;
|
this.awtFlag = awtFlag;
|
||||||
|
@ -67,8 +67,8 @@ public class HwmfPenStyle implements Cloneable {
|
||||||
*/
|
*/
|
||||||
MITER(2, BasicStroke.JOIN_MITER);
|
MITER(2, BasicStroke.JOIN_MITER);
|
||||||
|
|
||||||
public int wmfFlag;
|
public final int wmfFlag;
|
||||||
public int awtFlag;
|
public final int awtFlag;
|
||||||
HwmfLineJoin(int wmfFlag, int awtFlag) {
|
HwmfLineJoin(int wmfFlag, int awtFlag) {
|
||||||
this.wmfFlag = wmfFlag;
|
this.wmfFlag = wmfFlag;
|
||||||
this.awtFlag = awtFlag;
|
this.awtFlag = awtFlag;
|
||||||
|
@ -121,8 +121,8 @@ public class HwmfPenStyle implements Cloneable {
|
||||||
USERSTYLE(0x0007, null);
|
USERSTYLE(0x0007, null);
|
||||||
|
|
||||||
|
|
||||||
public int wmfFlag;
|
public final int wmfFlag;
|
||||||
public float[] dashes;
|
public final float[] dashes;
|
||||||
HwmfLineDash(int wmfFlag, float... dashes) {
|
HwmfLineDash(int wmfFlag, float... dashes) {
|
||||||
this.wmfFlag = wmfFlag;
|
this.wmfFlag = wmfFlag;
|
||||||
this.dashes = dashes;
|
this.dashes = dashes;
|
||||||
|
|
|
@ -95,8 +95,8 @@ public enum HwmfRecordType {
|
||||||
,textOut(0x0521, HwmfText.WmfTextOut.class)
|
,textOut(0x0521, HwmfText.WmfTextOut.class)
|
||||||
;
|
;
|
||||||
|
|
||||||
public int id;
|
public final int id;
|
||||||
public Class<? extends HwmfRecord> clazz;
|
public final Class<? extends HwmfRecord> clazz;
|
||||||
|
|
||||||
HwmfRecordType(int id, Class<? extends HwmfRecord> clazz) {
|
HwmfRecordType(int id, Class<? extends HwmfRecord> clazz) {
|
||||||
this.id = id;
|
this.id = id;
|
||||||
|
|
Loading…
Reference in New Issue