diff options
Diffstat (limited to 'test/eclipse/resource/rename')
4 files changed, 56 insertions, 0 deletions
diff --git a/test/eclipse/resource/rename/extensionMethod/after/Extension.java b/test/eclipse/resource/rename/extensionMethod/after/Extension.java new file mode 100644 index 00000000..8735bfa7 --- /dev/null +++ b/test/eclipse/resource/rename/extensionMethod/after/Extension.java @@ -0,0 +1,15 @@ +package pkg; + +public static class Extension { + public static String newTest(String s) { + return s; + } + + public static String test(String s, int i) { + return s; + } + + public static String test(String s, String... s2) { + return s; + } +}
\ No newline at end of file diff --git a/test/eclipse/resource/rename/extensionMethod/after/Usage.java b/test/eclipse/resource/rename/extensionMethod/after/Usage.java new file mode 100644 index 00000000..c7ddf613 --- /dev/null +++ b/test/eclipse/resource/rename/extensionMethod/after/Usage.java @@ -0,0 +1,13 @@ +package pkg; + +import lombok.experimental.ExtensionMethod; + +@ExtensionMethod(Extension.class) +public class Usage { + public void test() { + private String string; + string.newTest(); + string.test("a"); + string.test(1); + } +}
\ No newline at end of file diff --git a/test/eclipse/resource/rename/extensionMethod/before/Extension.java b/test/eclipse/resource/rename/extensionMethod/before/Extension.java new file mode 100644 index 00000000..6f1f22e8 --- /dev/null +++ b/test/eclipse/resource/rename/extensionMethod/before/Extension.java @@ -0,0 +1,15 @@ +package pkg; + +public static class Extension { + public static String test(String s) { + return s; + } + + public static String test(String s, int i) { + return s; + } + + public static String test(String s, String... s2) { + return s; + } +}
\ No newline at end of file diff --git a/test/eclipse/resource/rename/extensionMethod/before/Usage.java b/test/eclipse/resource/rename/extensionMethod/before/Usage.java new file mode 100644 index 00000000..becaaea9 --- /dev/null +++ b/test/eclipse/resource/rename/extensionMethod/before/Usage.java @@ -0,0 +1,13 @@ +package pkg; + +import lombok.experimental.ExtensionMethod; + +@ExtensionMethod(Extension.class) +public class Usage { + public void test() { + private String string; + string.test(); + string.test("a"); + string.test(1); + } +}
\ No newline at end of file |