aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/before/ExtensionMethodNonStatic.java
diff options
context:
space:
mode:
authorReinier Zwitserloot <r.zwitserloot@projectlombok.org>2023-01-12 01:56:15 +0100
committerGitHub <noreply@github.com>2023-01-12 01:56:15 +0100
commit8bb4dc5daa8792e718e88c596812f232a2b73e6e (patch)
tree359d583cc91248be7eaf895e5d0371f1da555a27 /test/transform/resource/before/ExtensionMethodNonStatic.java
parentb69ff85b9494a1a05a5763ef53069437328d443a (diff)
parent4feabb4d1e247f21134657a159727b6f6c9e2c94 (diff)
downloadlombok-8bb4dc5daa8792e718e88c596812f232a2b73e6e.tar.gz
lombok-8bb4dc5daa8792e718e88c596812f232a2b73e6e.tar.bz2
lombok-8bb4dc5daa8792e718e88c596812f232a2b73e6e.zip
Merge pull request #3312 from Rawi01/extensionmethod-nonstatic
Ignore non-static/non-public extension methods
Diffstat (limited to 'test/transform/resource/before/ExtensionMethodNonStatic.java')
-rw-r--r--test/transform/resource/before/ExtensionMethodNonStatic.java15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/transform/resource/before/ExtensionMethodNonStatic.java b/test/transform/resource/before/ExtensionMethodNonStatic.java
new file mode 100644
index 00000000..9ccaaedd
--- /dev/null
+++ b/test/transform/resource/before/ExtensionMethodNonStatic.java
@@ -0,0 +1,15 @@
+import lombok.experimental.ExtensionMethod;
+
+@ExtensionMethod({ExtensionMethodNonStatic.Extensions.class})
+class ExtensionMethodNonStatic {
+ public void test() {
+ String s = "test";
+ s.startsWith("");
+ }
+
+ static class Extensions {
+ public boolean startsWith(String s, String prefix) {
+ return s.startsWith(prefix);
+ }
+ }
+}