aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/poi/util
diff options
context:
space:
mode:
authorAndreas Beeker <kiwiwings@apache.org>2020-02-25 21:27:07 +0000
committerAndreas Beeker <kiwiwings@apache.org>2020-02-25 21:27:07 +0000
commit369170467880ccab6c4cc9aeeae1caae15d0a469 (patch)
treea246cac0c341f23558e2f51823aed85a8e739c00 /src/java/org/apache/poi/util
parent1aed0bc40b059ece5c2b078f3870f3dc7550d4dc (diff)
downloadpoi-369170467880ccab6c4cc9aeeae1caae15d0a469.tar.gz
poi-369170467880ccab6c4cc9aeeae1caae15d0a469.zip
Sonar fixes
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1874530 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/poi/util')
-rw-r--r--src/java/org/apache/poi/util/IntList.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/java/org/apache/poi/util/IntList.java b/src/java/org/apache/poi/util/IntList.java
index 03571bf953..f536e089e9 100644
--- a/src/java/org/apache/poi/util/IntList.java
+++ b/src/java/org/apache/poi/util/IntList.java
@@ -284,8 +284,8 @@ public class IntList
if (o == this) {
return true;
}
-
- if (o.getClass()!=this.getClass()) {
+
+ if (!(o instanceof IntList)) {
return false;
}
@@ -294,13 +294,13 @@ public class IntList
if (other._limit != _limit) {
return false;
}
-
+
for (int i=0; i< _limit; i++) {
if (other._array[i] != _array[i]) {
return false;
}
}
-
+
return true;
}