aboutsummaryrefslogtreecommitdiffstats
path: root/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFParagraph.java
diff options
context:
space:
mode:
authorDominik Stadler <centic@apache.org>2017-04-17 20:13:52 +0000
committerDominik Stadler <centic@apache.org>2017-04-17 20:13:52 +0000
commit5ca0b239bf9f6f0b1b0a80806a8727b702936614 (patch)
tree3df3b6e82426b169bfd7ac604a001caa237d65d5 /src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFParagraph.java
parent93ed80ba98fa4381356fed5d057861b9b65bff7f (diff)
downloadpoi-5ca0b239bf9f6f0b1b0a80806a8727b702936614.tar.gz
poi-5ca0b239bf9f6f0b1b0a80806a8727b702936614.zip
Let IntelliJ cleanup some code-warnings across the whole code-base: unnecessary toString or semicolon
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1791720 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFParagraph.java')
-rw-r--r--src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFParagraph.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFParagraph.java b/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFParagraph.java
index 0fbc65ec00..532a149671 100644
--- a/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFParagraph.java
+++ b/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFParagraph.java
@@ -190,12 +190,12 @@ public class XWPFParagraph implements IBodyElement, IRunBody, ISDTContents, Para
XWPFRun xRun = (XWPFRun) run;
// don't include the text if reviewing is enabled and this is a deleted run
if (!xRun.getCTR().isSetRsidDel()) {
- out.append(xRun.toString());
+ out.append(xRun);
}
} else if (run instanceof XWPFSDT) {
out.append(((XWPFSDT) run).getContent().getText());
} else {
- out.append(run.toString());
+ out.append(run);
}
}
out.append(footnoteText);
@@ -400,7 +400,7 @@ public class XWPFParagraph implements IBodyElement, IRunBody, ISDTContents, Para
public String getParagraphText() {
StringBuffer out = new StringBuffer();
for (XWPFRun run : runs) {
- out.append(run.toString());
+ out.append(run);
}
return out.toString();
}