From 369170467880ccab6c4cc9aeeae1caae15d0a469 Mon Sep 17 00:00:00 2001 From: Andreas Beeker Date: Tue, 25 Feb 2020 21:27:07 +0000 Subject: Sonar fixes git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1874530 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/poi/util/IntList.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/java/org/apache/poi/util') 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; } -- cgit v1.2.3