diff options
author | Rawi01 <Rawi01@users.noreply.github.com> | 2020-08-20 09:27:11 +0200 |
---|---|---|
committer | Rawi01 <Rawi01@users.noreply.github.com> | 2020-08-20 09:29:49 +0200 |
commit | 4d2ae4ba3261ab2963c13649b3ba8f4b3881e9c3 (patch) | |
tree | edf633e80da8b2e26974fd49d5e66572575bd0cc /test/transform/resource/after-delombok | |
parent | 7dfbe4323c15cbd88983380b27a250d2a381d148 (diff) | |
download | lombok-4d2ae4ba3261ab2963c13649b3ba8f4b3881e9c3.tar.gz lombok-4d2ae4ba3261ab2963c13649b3ba8f4b3881e9c3.tar.bz2 lombok-4d2ae4ba3261ab2963c13649b3ba8f4b3881e9c3.zip |
[bugfix] Fix suppressBaseMethods in ecj/eclipse
Diffstat (limited to 'test/transform/resource/after-delombok')
-rw-r--r-- | test/transform/resource/after-delombok/ExtensionMethodSuppress.java | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/test/transform/resource/after-delombok/ExtensionMethodSuppress.java b/test/transform/resource/after-delombok/ExtensionMethodSuppress.java new file mode 100644 index 00000000..d9e7cb28 --- /dev/null +++ b/test/transform/resource/after-delombok/ExtensionMethodSuppress.java @@ -0,0 +1,33 @@ +class ExtensionMethodSuppress { + public void test() { + Test.staticMethod(); + Test test = new Test(); + Extensions.instanceMethod(test); + Extensions.staticMethod(test); + } +} + +class ExtensionMethodKeep { + public void test() { + Test.staticMethod(); + Test test = new Test(); + test.instanceMethod(); + test.staticMethod(); + } +} + +class Test { + public static void staticMethod() { + } + + public void instanceMethod() { + } +} + +class Extensions { + public static void staticMethod(Test test) { + } + + public static void instanceMethod(Test test) { + } +}
\ No newline at end of file |