mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-07 13:39:36 +07:00
not initialized problem: fix static fields checks
This commit is contained in:
@@ -239,4 +239,14 @@ class IDEA100237 {
|
||||
final int qux = <error descr="Variable 'bar' might not have been initialized">bar</error>.hashCode() + 1;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
class StaticInitializerUsedInAnotherStaticField {
|
||||
private static final int ENUMERATION_CACHE_SIZE;
|
||||
|
||||
static {
|
||||
ENUMERATION_CACHE_SIZE = 0;
|
||||
}
|
||||
|
||||
private static final int ourEnumerationCacheConstant = ENUMERATION_CACHE_SIZE;
|
||||
}
|
||||
Reference in New Issue
Block a user