diff options
author | Andreas Beeker <kiwiwings@apache.org> | 2015-08-13 00:38:04 +0000 |
---|---|---|
committer | Andreas Beeker <kiwiwings@apache.org> | 2015-08-13 00:38:04 +0000 |
commit | b21dd0241ef68ec78910a294bc7f3048ec2a5925 (patch) | |
tree | e1492f18dc44d32070fabc303bab83b261c7b1f8 /src/ooxml/java/org/apache/poi/xwpf/usermodel/BreakClear.java | |
parent | e5b07df265112b5da665e5c10d977b838c64557e (diff) | |
download | poi-b21dd0241ef68ec78910a294bc7f3048ec2a5925.tar.gz poi-b21dd0241ef68ec78910a294bc7f3048ec2a5925.zip |
findbugs - DM_NUMBER_CTOR
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1695635 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/ooxml/java/org/apache/poi/xwpf/usermodel/BreakClear.java')
-rw-r--r-- | src/ooxml/java/org/apache/poi/xwpf/usermodel/BreakClear.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ooxml/java/org/apache/poi/xwpf/usermodel/BreakClear.java b/src/ooxml/java/org/apache/poi/xwpf/usermodel/BreakClear.java index 4fbef1d20f..e44bb3b0f4 100644 --- a/src/ooxml/java/org/apache/poi/xwpf/usermodel/BreakClear.java +++ b/src/ooxml/java/org/apache/poi/xwpf/usermodel/BreakClear.java @@ -87,7 +87,7 @@ public enum BreakClear { static {
for (BreakClear p : values()) {
- imap.put(new Integer(p.getValue()), p);
+ imap.put(p.getValue(), p);
}
}
@@ -98,7 +98,7 @@ public enum BreakClear { }
public static BreakClear valueOf(int type) {
- BreakClear bType = imap.get(new Integer(type));
+ BreakClear bType = imap.get(type);
if (bType == null)
throw new IllegalArgumentException("Unknown break clear type: "
+ type);
|