Skip to content

Commit 64a9ccb

Browse files
timtebeekTeamModerne
authored andcommitted
1 parent 39b0615 commit 64a9ccb

File tree

4 files changed

+7
-16
lines changed

4 files changed

+7
-16
lines changed

src/main/java/org/openrewrite/java/logging/ParameterizedLogging.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,7 @@ public class ParameterizedLogging extends Recipe {
5757
"significantly boost performance for messages that otherwise would be assembled with String concatenation. " +
5858
"Particularly impactful when the log level is not enabled, as no work is done to assemble the message.";
5959

60-
@Override
61-
public Set<String> getTags() {
62-
return new HashSet<>(Arrays.asList("RSPEC-S2629", "RSPEC-S3457"));
63-
}
60+
Set<String> tags = new HashSet<>(Arrays.asList("RSPEC-S2629", "RSPEC-S3457"));
6461

6562
@Override
6663
public TreeVisitor<?, ExecutionContext> getVisitor() {

src/main/java/org/openrewrite/java/logging/slf4j/CompleteExceptionLogging.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,8 @@ public class CompleteExceptionLogging extends Recipe {
5858
"and not an exception is already passed as the last parameter to the log method, then we will append " +
5959
"the exception as the last parameter in the log method.";
6060

61-
@Override
62-
public Set<String> getTags() {
63-
return new HashSet<>(Arrays.asList("logging", "slf4j"));
64-
}
61+
@Getter
62+
final Set<String> tags = new HashSet<>(Arrays.asList("logging", "slf4j"));
6563

6664
@Override
6765
public @Nullable Duration getEstimatedEffortPerOccurrence() {

src/main/java/org/openrewrite/java/logging/slf4j/LoggersNamedForEnclosingClass.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,8 @@ public Duration getEstimatedEffortPerOccurrence() {
5151
return Duration.ofMinutes(1);
5252
}
5353

54-
@Override
55-
public Set<String> getTags() {
56-
return new HashSet<>(Arrays.asList("RSPEC-S3416", "logging", "slf4j"));
57-
}
54+
@Getter
55+
final Set<String> tags = new HashSet<>(Arrays.asList("RSPEC-S3416", "logging", "slf4j"));
5856

5957
@Override
6058
public TreeVisitor<?, ExecutionContext> getVisitor() {

src/main/java/org/openrewrite/java/logging/slf4j/Slf4jLogShouldBeConstant.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,8 @@ public class Slf4jLogShouldBeConstant extends Recipe {
5555
@Getter
5656
final String description = "Logging statements shouldn't begin with `String#format`, calls to `toString()`, etc.";
5757

58-
@Override
59-
public Set<String> getTags() {
60-
return new HashSet<>(Arrays.asList("logging", "slf4j"));
61-
}
58+
@Getter
59+
final Set<String> tags = new HashSet<>(Arrays.asList("logging", "slf4j"));
6260

6361
@Override
6462
public TreeVisitor<?, ExecutionContext> getVisitor() {

0 commit comments

Comments
 (0)