org.sonar.l10n.java.rules.squid.S2176.html Maven / Gradle / Ivy
The newest version!
While it's perfectly legal to give a class the same simple name as a class in another package that it extends or interface it implements, it's confusing and could cause problems in the future.
Noncompliant Code Example
package my.mypackage;
public class Foo implements a.b.Foo { // Noncompliant
Compliant Solution
package my.mypackage;
public class FooJr implements a.b.Foo {
© 2015 - 2025 Weber Informatics LLC | Privacy Policy