mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
Java8CollectionsApiInspection is split into 4 separate inspections
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
// "Replace with 'getOrDefault' method call" "false"
|
||||
import java.util.Map;
|
||||
|
||||
public class Main {
|
||||
private String str;
|
||||
|
||||
public void testGetOrDefault(Map<String, String> map, String key, Main other) {
|
||||
str = map.get(key);
|
||||
if(other.str ==<caret> null) {
|
||||
// comment
|
||||
str = "";
|
||||
}
|
||||
System.out.println(str);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user