Class MustBeClosedChecker

All Implemented Interfaces:
BugChecker.ClassTreeMatcher, BugChecker.MethodInvocationTreeMatcher, BugChecker.MethodTreeMatcher, BugChecker.NewClassTreeMatcher, Suppressible, Serializable

public class MustBeClosedChecker
extends AbstractMustBeClosedChecker
implements BugChecker.MethodTreeMatcher, BugChecker.MethodInvocationTreeMatcher, BugChecker.NewClassTreeMatcher, BugChecker.ClassTreeMatcher
Checks if a constructor or method annotated with MustBeClosed is called within the resource variable initializer of a try-with-resources statement.
See Also:
Serialized Form