aboutsummaryrefslogtreecommitdiff
path: root/test/eclipse/resource/findreferences
diff options
context:
space:
mode:
authorRawi01 <Rawi01@users.noreply.github.com>2023-03-20 21:46:25 +0100
committerRoel Spilker <r.spilker@gmail.com>2023-03-22 22:57:52 +0100
commitafceb138e6e4ca2dca0f16fd5297d7451f5f4e80 (patch)
treeea8d5ddd944809b92f9a9ed857da90c00b521ac7 /test/eclipse/resource/findreferences
parentd56b576c26d6e6a0621997a9758151cf41e7a74e (diff)
downloadlombok-afceb138e6e4ca2dca0f16fd5297d7451f5f4e80.tar.gz
lombok-afceb138e6e4ca2dca0f16fd5297d7451f5f4e80.tar.bz2
lombok-afceb138e6e4ca2dca0f16fd5297d7451f5f4e80.zip
[fixes #3373] Find references for extension methods
Diffstat (limited to 'test/eclipse/resource/findreferences')
-rw-r--r--test/eclipse/resource/findreferences/extensionMethod/Extension.java15
-rw-r--r--test/eclipse/resource/findreferences/extensionMethod/Usage.java13
2 files changed, 28 insertions, 0 deletions
diff --git a/test/eclipse/resource/findreferences/extensionMethod/Extension.java b/test/eclipse/resource/findreferences/extensionMethod/Extension.java
new file mode 100644
index 00000000..6f1f22e8
--- /dev/null
+++ b/test/eclipse/resource/findreferences/extensionMethod/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/findreferences/extensionMethod/Usage.java b/test/eclipse/resource/findreferences/extensionMethod/Usage.java
new file mode 100644
index 00000000..becaaea9
--- /dev/null
+++ b/test/eclipse/resource/findreferences/extensionMethod/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