mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-10 13:17:09 +07:00
used variable before static initializer (IDEA-166270)
This commit is contained in:
+10
-1
@@ -301,11 +301,20 @@ class DefiniteAssignmentInFinally {
|
||||
}
|
||||
class StaticInitializerUsedInAnotherInstanceField {
|
||||
private final int myEnumerationCacheConstant = ENUMERATION_CACHE_SIZE;
|
||||
private static final int ourEnumerationCacheConstant = <error descr="Illegal forward reference">ENUMERATION_CACHE_SIZE</error>;
|
||||
private static final int ourEnumerationCacheConstant = <error descr="Variable 'ENUMERATION_CACHE_SIZE' might not have been initialized">ENUMERATION_CACHE_SIZE</error>;
|
||||
|
||||
private static final int ENUMERATION_CACHE_SIZE;
|
||||
|
||||
static {
|
||||
ENUMERATION_CACHE_SIZE = 0;
|
||||
}
|
||||
}
|
||||
|
||||
class StaticInitializedUsedInAnotherStaticField {
|
||||
private static final String STRINGS1;
|
||||
private static final String STRINGS2 = <error descr="Variable 'STRINGS1' might not have been initialized">STRINGS1</error>;
|
||||
|
||||
static {
|
||||
STRINGS1 = "";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user