diff options
author | Andreas Beeker <kiwiwings@apache.org> | 2016-11-12 18:35:39 +0000 |
---|---|---|
committer | Andreas Beeker <kiwiwings@apache.org> | 2016-11-12 18:35:39 +0000 |
commit | 975677da87d9055055a01cb670da1062a19177be (patch) | |
tree | 2bacf2e3b4a19021e86b955fac886f125194321a /src/scratchpad | |
parent | b7173825488fe9109b46da47a5745f3ee10571fa (diff) | |
download | poi-975677da87d9055055a01cb670da1062a19177be.tar.gz poi-975677da87d9055055a01cb670da1062a19177be.zip |
SonarCube fixes
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1769399 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/scratchpad')
-rw-r--r-- | src/scratchpad/src/org/apache/poi/hwpf/dev/HWPFLister.java | 38 |
1 files changed, 16 insertions, 22 deletions
diff --git a/src/scratchpad/src/org/apache/poi/hwpf/dev/HWPFLister.java b/src/scratchpad/src/org/apache/poi/hwpf/dev/HWPFLister.java index 54be13f14e..e89efe7354 100644 --- a/src/scratchpad/src/org/apache/poi/hwpf/dev/HWPFLister.java +++ b/src/scratchpad/src/org/apache/poi/hwpf/dev/HWPFLister.java @@ -380,27 +380,24 @@ public final class HWPFLister } } - if ( true ) + String text = new Range( chpx.getStart(), chpx.getEnd(), + _doc.getOverallRange() ) { - String text = new Range( chpx.getStart(), chpx.getEnd(), - _doc.getOverallRange() ) + public String toString() { - public String toString() - { - return "CHPX range (" + super.toString() + ")"; - } - }.text(); - StringBuilder stringBuilder = new StringBuilder(); - for ( char c : text.toCharArray() ) - { - if ( c < 30 ) - stringBuilder - .append( "\\0x" + Integer.toHexString( c ) ); - else - stringBuilder.append( c ); + return "CHPX range (" + super.toString() + ")"; } - System.out.println( stringBuilder ); + }.text(); + StringBuilder stringBuilder = new StringBuilder(); + for ( char c : text.toCharArray() ) + { + if ( c < 30 ) + stringBuilder + .append( "\\0x" + Integer.toHexString( c ) ); + else + stringBuilder.append( c ); } + System.out.println( stringBuilder ); } } @@ -584,11 +581,8 @@ public final class HWPFLister System.out.println( paragraph.getProps() ); } - if ( true ) - { - SprmIterator sprmIt = new SprmIterator( papx.getGrpprl(), 2 ); - dumpSprms( sprmIt, "\t" ); - } + SprmIterator sprmIt = new SprmIterator( papx.getGrpprl(), 2 ); + dumpSprms( sprmIt, "\t" ); } } |