mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-04 12:17:12 +07:00
Java control flow: Added conditional branch that bypasses assert statement because assertions can be disabled (IDEA-71526)
This commit is contained in:
@@ -274,4 +274,12 @@ class InitializedInClassInitializerUsedInTheFollowingFieldInitializer {
|
||||
{
|
||||
k = 1;
|
||||
}
|
||||
}
|
||||
|
||||
class AssignInAssert {
|
||||
<error descr="Variable 'b' might not have been initialized">private final boolean b</error>;
|
||||
|
||||
AssignInAssert() {
|
||||
assert b = true;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user