Class OverridingMethodInconsistentArgumentNamesChecker

java.lang.Object
com.google.errorprone.bugpatterns.BugChecker
com.google.errorprone.bugpatterns.OverridingMethodInconsistentArgumentNamesChecker
All Implemented Interfaces:
BugChecker.MethodTreeMatcher, Suppressible, Serializable

public class OverridingMethodInconsistentArgumentNamesChecker extends BugChecker implements BugChecker.MethodTreeMatcher
A BugChecker; see the associated BugPattern annotation for details.
See Also:
  • Constructor Details

    • OverridingMethodInconsistentArgumentNamesChecker

      public OverridingMethodInconsistentArgumentNamesChecker()
  • Method Details

    • matchMethod

      public Description matchMethod(com.sun.source.tree.MethodTree methodTree, VisitorState state)
      Specified by:
      matchMethod in interface BugChecker.MethodTreeMatcher
    • getDescription

      public String getDescription(com.sun.tools.javac.code.Symbol.MethodSymbol methodSymbol)
      Provides a violation description with suggested parameter ordering.

      We're not returning a suggested fix as re-ordering is not safe and might break the code.