All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.sonar.l10n.pmd.rules.pmd.EmptyMethodInAbstractClassShouldBeAbstract.html Maven / Gradle / Ivy

There is a newer version: 4.0.3
Show newest version
An empty method in an abstract class should be abstract instead, as developer may rely on this empty implementation rather than code the appropriate one.
public abstract class ShouldBeAbstract
{
  public Object couldBeAbstract()
  {
  // Should be abstract method ?
    return null;
  }

  public void couldBeAbstract()
  {
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy