org.sonar.l10n.java.rules.squid.S2094.html Maven / Gradle / Ivy
The newest version!
There is no good excuse for an empty class. If it's being used simply as a common extension point, it should be replaced with an interface
. If it was stubbed in as a placeholder for future development it should be fleshed-out. In any other case, it should be eliminated.
Noncompliant Code Example
public class Nothing { // Noncompliant
}
Compliant Solution
public interface Nothing {
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy