while checking new rules we noticed that there are some rules which now exist twice and we are not able to identify the reason for having them twice.
Examples:
javabugs:S6646 seems to be identical to java:S2589
javabugs:S6651 seems to be identical to java:S2583
There might be more.
Are this really both the same rules or is there a difference that I just did not understand so far? And if they are same: Why do you introduce identical rules?
Yes they are the same. Note that the javabugs rules are not activated by default, if you’d like to use them you can deactivate the corresponding java rule. We will eventually have a single rule to detect the issue, this isn’t finalised so I cannot say how, when or what that will look like or which rule is preferred. It is a work in progress.