mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-10 18:09:38 +07:00
Java control flow: Fixed false positive for definite assignment in finally block (IDEA-64488)
This commit is contained in:
@@ -282,4 +282,20 @@ class AssignInAssert {
|
||||
AssignInAssert() {
|
||||
assert b = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class DefiniteAssignmentInFinally {
|
||||
private final String S;
|
||||
{
|
||||
try {
|
||||
try {
|
||||
} finally {
|
||||
try {
|
||||
} catch (Exception e) {
|
||||
}
|
||||
}
|
||||
} finally {
|
||||
S = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user