diff --git a/error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/StringJoin.java b/error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/StringJoin.java index e590037268..f7d8f810b7 100644 --- a/error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/StringJoin.java +++ b/error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/StringJoin.java @@ -1,9 +1,10 @@ package tech.picnic.errorprone.bugpatterns; -import static com.google.errorprone.BugPattern.LinkType.NONE; +import static com.google.errorprone.BugPattern.LinkType.CUSTOM; import static com.google.errorprone.BugPattern.SeverityLevel.SUGGESTION; import static com.google.errorprone.BugPattern.StandardTags.SIMPLIFICATION; import static com.google.errorprone.matchers.method.MethodMatchers.staticMethod; +import static tech.picnic.errorprone.bugpatterns.util.Documentation.BUG_PATTERNS_BASE_URL; import com.google.auto.service.AutoService; import com.google.common.base.Splitter; @@ -40,7 +41,8 @@ @AutoService(BugChecker.class) @BugPattern( summary = "Prefer `String#join` over `String#format`", - linkType = NONE, + link = BUG_PATTERNS_BASE_URL + "StringJoin", + linkType = CUSTOM, severity = SUGGESTION, tags = SIMPLIFICATION) public final class StringJoin extends BugChecker implements MethodInvocationTreeMatcher {