Class InjectedConstructorAnnotations

    • Constructor Detail

      • InjectedConstructorAnnotations

        public InjectedConstructorAnnotations()
    • Method Detail

      • matchMethod

        public Description matchMethod​(com.sun.source.tree.MethodTree methodTree,
                                       VisitorState state)
        Matches injected constructors annotated with @Inject(optional=true) or binding annotations. Suggests fixes to remove the argument optional=true or binding annotations.
        Specified by:
        matchMethod in interface BugChecker.MethodTreeMatcher