diff options
author | Andreas Beeker <kiwiwings@apache.org> | 2015-08-13 00:17:08 +0000 |
---|---|---|
committer | Andreas Beeker <kiwiwings@apache.org> | 2015-08-13 00:17:08 +0000 |
commit | e5b07df265112b5da665e5c10d977b838c64557e (patch) | |
tree | 015ca589059e839063bd1af1d06a82ae2f95a126 /src/ooxml/java/org/apache/poi/xwpf/usermodel | |
parent | e7c3db9ecce34266e205e03f18bd707ce815efd4 (diff) | |
download | poi-e5b07df265112b5da665e5c10d977b838c64557e.tar.gz poi-e5b07df265112b5da665e5c10d977b838c64557e.zip |
findbugs - DM_BOXED_PRIMITIVE_...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1695629 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/ooxml/java/org/apache/poi/xwpf/usermodel')
-rw-r--r-- | src/ooxml/java/org/apache/poi/xwpf/usermodel/TOC.java | 2 | ||||
-rw-r--r-- | src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFDocument.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/ooxml/java/org/apache/poi/xwpf/usermodel/TOC.java b/src/ooxml/java/org/apache/poi/xwpf/usermodel/TOC.java index b7dc6ee2f5..0cbe5bacf6 100644 --- a/src/ooxml/java/org/apache/poi/xwpf/usermodel/TOC.java +++ b/src/ooxml/java/org/apache/poi/xwpf/usermodel/TOC.java @@ -114,7 +114,7 @@ public class TOC { // page number run
run = p.addNewR();
run.addNewRPr().addNewNoProof();
- run.addNewT().setStringValue(Integer.valueOf(page).toString());
+ run.addNewT().setStringValue(Integer.toString(page));
run = p.addNewR();
run.addNewRPr().addNewNoProof();
run.addNewFldChar().setFldCharType(STFldCharType.END);
diff --git a/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFDocument.java b/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFDocument.java index 9eabdebc8b..d0e70bb62f 100644 --- a/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFDocument.java +++ b/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFDocument.java @@ -901,7 +901,7 @@ public class XWPFDocument extends POIXMLDocument implements Document, IBody { String parStyle = par.getStyle(); if (parStyle != null && parStyle.startsWith("Heading")) { try { - int level = Integer.valueOf(parStyle.substring("Heading".length())).intValue(); + int level = Integer.parseInt(parStyle.substring("Heading".length())); toc.addRow(level, par.getText(), 1, "112723803"); } catch (NumberFormatException e) { e.printStackTrace(); |