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

org.sonar.l10n.java.rules.squid.UnusedProtectedMethod.html Maven / Gradle / Ivy

Protected methods that are never used by any classes in the same project are strongly suspected to be dead code. Dead code means unnecessary, inoperative code that should be removed. This helps in maintenance by decreasing the maintained code size, making it easier to understand the program and preventing bugs from being introduced.

In the following case, unused protected methods are not considered as dead code by Sonar :

  • Protected methods which override a method from a parent class.
  • Protected methods of an abstract class.




© 2015 - 2025 Weber Informatics LLC | Privacy Policy