This inspection reports any implementations of compareTo() which access non-final variables. Such access may result in compareTo() returning different results at different points in an object's lifecycle, which may in turn cause problems when using the standard Collections classes.
Powered by InspectionGadgets