Class EmptyIfStatement

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

public class EmptyIfStatement extends BugChecker implements BugChecker.EmptyStatementTreeMatcher
This checker finds and fixes empty statements after an if, with no else part. For example: if (foo == 10);

It attempts to match javac's -Xlint:empty warning behavior, which can be found in com/sun/tools/javac/comp/Check.java.

Author:
eaftan@google.com (Eddie Aftandilian)
See Also:
  • Constructor Details

    • EmptyIfStatement

      public EmptyIfStatement()
  • Method Details