SonarCube fixes

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1769399 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Andreas Beeker 2016-11-12 18:35:39 +00:00
parent a6f005de81
commit 44ca7f04ba
2 changed files with 21 additions and 28 deletions

View File

@ -40,11 +40,10 @@ public abstract class LogicalFunction extends Fixed1ArgFunction {
try {
ve = OperandResolver.getSingleValue(arg0, srcRowIndex, srcColumnIndex);
} catch (EvaluationException e) {
if (false) {
// Note - it is more usual to propagate error codes straight to the result like this:
return e.getErrorEval();
// but logical functions behave a little differently
}
// return e.getErrorEval();
// this will usually cause a 'FALSE' result except for ISNONTEXT()
ve = e.getErrorEval();
}

View File

@ -380,8 +380,6 @@ public final class HWPFLister
}
}
if ( true )
{
String text = new Range( chpx.getStart(), chpx.getEnd(),
_doc.getOverallRange() )
{
@ -402,7 +400,6 @@ public final class HWPFLister
System.out.println( stringBuilder );
}
}
}
private void dumpDop()
{
@ -584,13 +581,10 @@ public final class HWPFLister
System.out.println( paragraph.getProps() );
}
if ( true )
{
SprmIterator sprmIt = new SprmIterator( papx.getGrpprl(), 2 );
dumpSprms( sprmIt, "\t" );
}
}
}
public void dumpParagraphs( boolean dumpAssotiatedPapx )
{