All Downloads are FREE. Search and download functionalities are using the official Maven repository.

resources.report.rules.findbugs.EC_ARRAY_AND_NONARRAY.html Maven / Gradle / Ivy



EC_ARRAY_AND_NONARRAY

EC: equals() used to compare array and nonarray (EC_ARRAY_AND_NONARRAY)

This method invokes the .equals(Object o) to compare an array and a reference that doesn't seem to be an array. If things being compared are of different types, they are guaranteed to be unequal and the comparison is almost certainly an error. Even if they are both arrays, the equals method on arrays only determines of the two arrays are the same object. To compare the contents of the arrays, use java.util.Arrays.equals(Object[], Object[]).





© 2015 - 2024 Weber Informatics LLC | Privacy Policy