From 4d2ae4ba3261ab2963c13649b3ba8f4b3881e9c3 Mon Sep 17 00:00:00 2001 From: Rawi01 Date: Thu, 20 Aug 2020 09:27:11 +0200 Subject: [bugfix] Fix suppressBaseMethods in ecj/eclipse --- .../after-delombok/ExtensionMethodSuppress.java | 33 ++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 test/transform/resource/after-delombok/ExtensionMethodSuppress.java (limited to 'test/transform/resource/after-delombok') 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 -- cgit