mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-09 20:42:52 +07:00
PreferMostUsedWeigher should return null "helper" methods (ex.: Objects.requireNonNull)
This commit is contained in:
+61
@@ -0,0 +1,61 @@
|
||||
class Foo {
|
||||
|
||||
public static void someMethod1() {
|
||||
|
||||
}
|
||||
|
||||
public static void someMethod2(String string) {
|
||||
|
||||
}
|
||||
|
||||
void m() {
|
||||
nonNull("");
|
||||
nonNull("");
|
||||
nonNull("");
|
||||
nonNull("");
|
||||
nonNull("");
|
||||
nonNull("");
|
||||
nonNull("");
|
||||
nonNull("");
|
||||
nonNull("");
|
||||
nonNull("");
|
||||
nonNull("");
|
||||
nonNull("");
|
||||
nonNull("");
|
||||
nonNull("");
|
||||
nonNull("");
|
||||
nonNull("");
|
||||
nonNull("");
|
||||
nonNull("");
|
||||
nonNull("");
|
||||
nonNull("");
|
||||
nonNull("");
|
||||
nonNull("");
|
||||
nonNull("");
|
||||
nonNull("");
|
||||
nonNull("");
|
||||
nonNull("");
|
||||
nonNull("");
|
||||
nonNull("");
|
||||
nonNull("");
|
||||
nonNull("");
|
||||
|
||||
someMethod1();
|
||||
someMethod1();
|
||||
someMethod1();
|
||||
someMethod2("");
|
||||
someMethod2("");
|
||||
someMethod2("");
|
||||
someMethod2("");
|
||||
someMethod2("");
|
||||
|
||||
<caret>
|
||||
|
||||
}
|
||||
|
||||
public static <T> T nonNull(T t) {
|
||||
assert t != null;
|
||||
return t;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user