File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed
src/main/java/org/openrewrite Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff 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 //}
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments