Class 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/

Author: (Eddie Aftandilian)
See Also:
  • Constructor Details

    • EmptyIfStatement

      public EmptyIfStatement()
  • Method Details