field can be local: treat non-primitive fields as read/write (IDEA-52901)

This commit is contained in:
anna
2010-03-15 19:45:03 +03:00
parent 79b3974643
commit 0dbd16d7ef
6 changed files with 37 additions and 3 deletions
@@ -0,0 +1,2 @@
<?xml version="1.0" encoding="UTF-8"?>
<problems/>
@@ -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("", "");
}
}