mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
field may be final: ignore throw clause when field was not assigned (IDEA-96018)
This commit is contained in:
@@ -630,8 +630,9 @@ public class FinalUtils {
|
||||
}
|
||||
|
||||
private void satisfyVacuously() {
|
||||
definitelyAssigned = true;
|
||||
definitelyUnassigned = true;
|
||||
if (definitelyAssigned) {
|
||||
definitelyUnassigned = true;
|
||||
}
|
||||
}
|
||||
|
||||
private static boolean isPrePostFixExpression(
|
||||
|
||||
+17
@@ -398,4 +398,21 @@ class Q implements Iterator<String> {
|
||||
public void remove() {
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
}
|
||||
class R {
|
||||
private static final String someStaticStuff;
|
||||
static {
|
||||
try {
|
||||
someStaticStuff = "";
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
}
|
||||
|
||||
private String someInjectedStuff;
|
||||
|
||||
public String getSomeInjectedStuff() {
|
||||
return someInjectedStuff;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user