mirror of
https://github.com/tiennm99/lombok.git
synced 2026-05-28 18:23:13 +00:00
[fixes #3310] Ignore non-static/non-public extension methods
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user