From 26a75f25c28c4b14a999fd808879db4f0b300716 Mon Sep 17 00:00:00 2001 From: Rick Ossendrijver Date: Thu, 20 Oct 2022 11:38:20 +0200 Subject: [PATCH] Tweaks --- .../picnic/errorprone/bugpatterns/RefasterRuleModifiers.java | 2 +- .../java/tech/picnic/errorprone/bugpatterns/StringJoin.java | 4 ++-- .../picnic/errorprone/bugpatterns/util/MoreTypesTest.java | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/RefasterRuleModifiers.java b/error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/RefasterRuleModifiers.java index fd016da91a4..df31f6b3cb5 100644 --- a/error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/RefasterRuleModifiers.java +++ b/error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/RefasterRuleModifiers.java @@ -29,7 +29,7 @@ import javax.lang.model.element.Modifier; /** - * A {@link BugChecker} which suggests a canonical set of modifiers for Refaster class and method + * A {@link BugChecker} that suggests a canonical set of modifiers for Refaster class and method * definitions. */ @AutoService(BugChecker.class) 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 1d91f0642b6..89204adc753 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 @@ -30,8 +30,8 @@ import tech.picnic.errorprone.bugpatterns.util.SourceCode; /** - * A {@link BugChecker} which flags {@link String#format(String, Object...)} invocations which can - * be replaced with a {@link String#join(CharSequence, CharSequence...)} or even a {@link + * A {@link BugChecker} that flags {@link String#format(String, Object...)} invocations which can be + * replaced with a {@link String#join(CharSequence, CharSequence...)} or even a {@link * String#valueOf} invocation. */ // XXX: What about `v1 + "sep" + v2` and similar expressions? Do we want to rewrite those to diff --git a/error-prone-contrib/src/test/java/tech/picnic/errorprone/bugpatterns/util/MoreTypesTest.java b/error-prone-contrib/src/test/java/tech/picnic/errorprone/bugpatterns/util/MoreTypesTest.java index 14c4229752f..fc25523c3d5 100644 --- a/error-prone-contrib/src/test/java/tech/picnic/errorprone/bugpatterns/util/MoreTypesTest.java +++ b/error-prone-contrib/src/test/java/tech/picnic/errorprone/bugpatterns/util/MoreTypesTest.java @@ -156,7 +156,7 @@ void matcher() { } /** - * A {@link BugChecker} which flags method invocations that are a subtype of any type contained in + * A {@link BugChecker} that flags method invocations that are a subtype of any type contained in * {@link #TYPES}. */ @BugPattern(summary = "Flags invocations of methods with select return types", severity = ERROR)