Hello all,
in some projects we have a lot of duplicated code detected in entity classes which results from very similar order and similar hashCode and equals methods. Many classes have an id attribute, a getter for it, a setter for it, a hashCode and an equals method. Sometimes other attributes are quite common as well. Still it does not make much sense to have common superclasses for them.
That's why I suggest to have
a) a means to exclude certain methods (e.g. by regular expression matched to signature) from duplicate detection
b) possibility to mark detected duplicate code blocks as false positives.
While a) would certainly be more important to us.
What do you think? Or is there even a featured which can be used like that or a workaround?
Regards,
Christian