squid:S1210 in inner class

java

(Ewa Śliwińska) #1

I have inner (private) class, and I need to make it Comparable, so I can create a TreeSet of it.
When I add compareTo method, Sonar wants me to add also equals, than hashcode… And even if I was willing to add them, it results in Eclipse warning - that they are not used.
Maybe this rule should have an exception for inner classes?