aboutsummaryrefslogtreecommitdiffstats
path: root/poi-scratchpad
diff options
context:
space:
mode:
authorPJ Fanning <fanningpj@apache.org>2021-12-30 20:34:10 +0000
committerPJ Fanning <fanningpj@apache.org>2021-12-30 20:34:10 +0000
commit9de29ea3fcc63dc434d3337e56fb504e71262fb5 (patch)
tree3a218cb5c23df283c566362ac6c194cd8c06fcb1 /poi-scratchpad
parent15b1c51f3397950fb35a4419924c71cedee6c068 (diff)
downloadpoi-9de29ea3fcc63dc434d3337e56fb504e71262fb5.tar.gz
poi-9de29ea3fcc63dc434d3337e56fb504e71262fb5.zip
use isEmpty()
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1896541 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'poi-scratchpad')
-rw-r--r--poi-scratchpad/src/main/java/org/apache/poi/hwpf/model/CHPBinTable.java2
-rw-r--r--poi-scratchpad/src/main/java/org/apache/poi/hwpf/model/PAPBinTable.java2
-rw-r--r--poi-scratchpad/src/main/java/org/apache/poi/hwpf/usermodel/Range.java2
3 files changed, 3 insertions, 3 deletions
diff --git a/poi-scratchpad/src/main/java/org/apache/poi/hwpf/model/CHPBinTable.java b/poi-scratchpad/src/main/java/org/apache/poi/hwpf/model/CHPBinTable.java
index 1d0a570791..3f2bd01081 100644
--- a/poi-scratchpad/src/main/java/org/apache/poi/hwpf/model/CHPBinTable.java
+++ b/poi-scratchpad/src/main/java/org/apache/poi/hwpf/model/CHPBinTable.java
@@ -242,7 +242,7 @@ public class CHPBinTable
}
}
- if ( chpxs.size() == 0 )
+ if ( chpxs.isEmpty() )
{
LOG.atWarn().log("Text piece [{}; {}) has no CHPX. Creating new one.", box(startInclusive),box(boundary));
// create it manually
diff --git a/poi-scratchpad/src/main/java/org/apache/poi/hwpf/model/PAPBinTable.java b/poi-scratchpad/src/main/java/org/apache/poi/hwpf/model/PAPBinTable.java
index 675b62e8be..917c7d8958 100644
--- a/poi-scratchpad/src/main/java/org/apache/poi/hwpf/model/PAPBinTable.java
+++ b/poi-scratchpad/src/main/java/org/apache/poi/hwpf/model/PAPBinTable.java
@@ -215,7 +215,7 @@ public class PAPBinTable
lastPapxIndex = oldPapxSortedByEndPos.size() - 1;
}
- if ( papxs.size() == 0 )
+ if ( papxs.isEmpty() )
{
LOG.atWarn().log("Paragraph [{}; {}) has no PAPX. Creating new one.", box(startInclusive),box(endExclusive));
// create it manually
diff --git a/poi-scratchpad/src/main/java/org/apache/poi/hwpf/usermodel/Range.java b/poi-scratchpad/src/main/java/org/apache/poi/hwpf/usermodel/Range.java
index a3fd882d64..08d3840e56 100644
--- a/poi-scratchpad/src/main/java/org/apache/poi/hwpf/usermodel/Range.java
+++ b/poi-scratchpad/src/main/java/org/apache/poi/hwpf/usermodel/Range.java
@@ -889,7 +889,7 @@ public class Range {
private static int binarySearchStart( List<? extends PropertyNode<?>> rpl,
int start )
{
- if ( rpl.size() == 0 )
+ if ( rpl.isEmpty())
return -1;
if ( rpl.get( 0 ).getStart() >= start )
return 0;