Skip to content

Commit be6873e

Browse files
committed
Consistently name input and output variables
1 parent 1eb3816 commit be6873e

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/main/java/org/openrewrite/apache/commons/lang/ApacheCommonsStringUtils.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ public class ApacheCommonsStringUtils {
3131
description = "Replace Apache Commons `StringUtils.abbreviate(String str, int maxWidth)` with JDK provided API.")
3232
public static class Abbreviate {
3333
@BeforeTemplate
34-
String before(@Matches(RepeatableArgumentMatcher.class) String s1,
34+
String before(@Matches(RepeatableArgumentMatcher.class) String s,
3535
@Matches(RepeatableArgumentMatcher.class) int width) {
36-
return StringUtils.abbreviate(s1, width);
36+
return StringUtils.abbreviate(s, width);
3737
}
3838

3939
@AfterTemplate
@@ -66,7 +66,7 @@ String after(String s) {
6666
// }
6767

6868
// @AfterTemplate
69-
// String after(String s) {
69+
// String after(String s) {`
7070
// return (s == null ? null : (s.endsWith("\n") ? s.substring(0, s.length() - 1) : s));
7171
// }
7272
//}

src/main/java/org/openrewrite/apache/maven/shared/MavenSharedStringUtils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ public class MavenSharedStringUtils {
3131
description = "Replace Maven Shared `StringUtils.abbreviate(String str, int maxWidth)` with JDK provided API.")
3232
public static class Abbreviate {
3333
@BeforeTemplate
34-
String before(@Matches(RepeatableArgumentMatcher.class) String s1,
34+
String before(@Matches(RepeatableArgumentMatcher.class) String s,
3535
@Matches(RepeatableArgumentMatcher.class) int width) {
36-
return StringUtils.abbreviate(s1, width);
36+
return StringUtils.abbreviate(s, width);
3737
}
3838

3939
@AfterTemplate

src/main/java/org/openrewrite/codehaus/plexus/PlexusStringUtils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ public class PlexusStringUtils {
3131
description = "Replace Plexus `StringUtils.abbreviate(String str, int maxWidth)` with JDK provided API.")
3232
public static class Abbreviate {
3333
@BeforeTemplate
34-
String before(@Matches(RepeatableArgumentMatcher.class) String s1,
34+
String before(@Matches(RepeatableArgumentMatcher.class) String s,
3535
@Matches(RepeatableArgumentMatcher.class) int width) {
36-
return StringUtils.abbreviate(s1, width);
36+
return StringUtils.abbreviate(s, width);
3737
}
3838

3939
@AfterTemplate

0 commit comments

Comments
 (0)