diff options
Diffstat (limited to 'src/java/org/apache/poi/util')
-rw-r--r-- | src/java/org/apache/poi/util/IntList.java | 8 |
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; } |