From 4feabb4d1e247f21134657a159727b6f6c9e2c94 Mon Sep 17 00:00:00 2001 From: Rawi01 Date: Sun, 11 Dec 2022 17:15:58 +0100 Subject: [fixes #3310] Ignore non-static/non-public extension methods --- .../resource/after-delombok/ExtensionMethodNonStatic.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 test/transform/resource/after-delombok/ExtensionMethodNonStatic.java (limited to 'test/transform/resource/after-delombok/ExtensionMethodNonStatic.java') diff --git a/test/transform/resource/after-delombok/ExtensionMethodNonStatic.java b/test/transform/resource/after-delombok/ExtensionMethodNonStatic.java new file mode 100644 index 00000000..c0f71308 --- /dev/null +++ b/test/transform/resource/after-delombok/ExtensionMethodNonStatic.java @@ -0,0 +1,12 @@ +class ExtensionMethodNonStatic { + public void test() { + String s = "test"; + s.startsWith(""); + } + + static class Extensions { + public boolean startsWith(String s, String prefix) { + return s.startsWith(prefix); + } + } +} \ No newline at end of file -- cgit