IG: compareTo erroneous warning

This inspection reports any instances of a class having a compareTo()
method taking an argument other than java.lang.Object, if the class does not
have a compareTo() method which does take java.lang.Object as its argument.
Normally, this is a mistake.

This is only true for non generics code. In case of generics compareTo
in fact takes anything but object :)

public final class Integer extends Number implements
Comparable]]> {

public int compareTo(Integer anotherInteger) {
}


}


1 comment
Comment actions Permalink

There's already a tracker item for this. It will be fixed before Irida ships.

--Dave Griffith

0

Please sign in to leave a comment.