mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
ComplexInitializer: Reset " -> new" inferred contract; otherwise we don't get "too complex" warning
This commit is contained in:
@@ -58,6 +58,8 @@ class Constants {
|
||||
static final Object C10 = get();
|
||||
static final Object C11 = get();
|
||||
|
||||
// Reset " -> new" inferred contract; otherwise we don't get "too complex" warning
|
||||
@Contract("-> _")
|
||||
static Object get() {
|
||||
System.out.println();
|
||||
return new Object();
|
||||
|
||||
Reference in New Issue
Block a user