Uses of Class
com.google.errorprone.matchers.Description.Builder
Package
Description
Checks added to the java compiler which detect common bug patterns.
A predicate DSL for matching javac AST nodes.
-
Uses of Description.Builder in com.google.errorprone.bugpatterns
Modifier and TypeMethodDescriptionBugChecker.buildDescription
(com.sun.source.tree.Tree node) Returns a Description builder, which allows you to customize the diagnostic with a custom message or multiple fixes.BugChecker.buildDescription
(com.sun.tools.javac.tree.JCTree tree) Returns a Description builder, which allows you to customize the diagnostic with a custom message or multiple fixes.BugChecker.buildDescription
(com.sun.tools.javac.util.JCDiagnostic.DiagnosticPosition position) Returns a Description builder, which allows you to customize the diagnostic with a custom message or multiple fixes.Modifier and TypeMethodDescriptionprotected void
AbstractReferenceEquality.addFixes
(Description.Builder builder, com.sun.source.tree.BinaryTree tree, VisitorState state) -
Uses of Description.Builder in com.google.errorprone.bugpatterns.threadsafety
Modifier and TypeMethodDescriptionImmutableAnalysis.ViolationReporter.describe
(com.sun.source.tree.Tree tree, ThreadSafety.Violation info) -
Uses of Description.Builder in com.google.errorprone.matchers
Modifier and TypeMethodDescriptionDescription.Builder.addAllFixes
(List<? extends Fix> fixes) Add each fix in order.Adds a suggested fix for thisDescription
.Deprecated.static Description.Builder
Description.builder
(com.sun.source.tree.Tree node, String name, @Nullable String link, String message) Returns a new builder forDescription
s.static Description.Builder
Description.builder
(com.sun.tools.javac.tree.JCTree tree, String name, @Nullable String link, String message) Returns a new builder forDescription
s.static Description.Builder
Description.builder
(com.sun.tools.javac.util.JCDiagnostic.DiagnosticPosition position, String name, @Nullable String link, String message) Returns a new builder forDescription
s.Description.Builder.overrideSeverity
(BugPattern.SeverityLevel severity) Description.Builder.setLinkUrl
(String linkUrl) Set a custom link URL.Description.Builder.setMessage
(String message) Set a custom error message for thisDescription
.
SuggestedFix.emptyFix()
.