Duplicate code in Java @interfaces

I am using SonarQube to examine my Java code. In that, I have to @interface classes which are quite similar, but they also have some differences. However, Sonar complains about the code duplication.

But @interfaces cannot be set up in an inheritance hierarchy. Does anybody have an idea how to solve this?

Hi,

It sounds like you want to set a duplication exclusion.

 
HTH,
Ann

That helped it out. Many thanks!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.