mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
field can be local: treat non-primitive fields as read/write (IDEA-52901)
This commit is contained in:
+2
@@ -0,0 +1,2 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<problems/>
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
import java.util.*;
|
||||
public class Outer {
|
||||
private Map<String, String> value = new HashMap<String, String>();
|
||||
|
||||
public class Inner {
|
||||
|
||||
public Inner(String s) {
|
||||
if (!value.containsKey(s)) value.put(s, "");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<problems>
|
||||
</problems>
|
||||
@@ -0,0 +1,8 @@
|
||||
import java.util.*;
|
||||
public class Test {
|
||||
private final Map<String, String> myModuleToOutput = new HashMap<String, String>();
|
||||
|
||||
void foo() {
|
||||
if (myModuleToOutput.containsKey(null)) myModuleToOutput.put("", "");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user