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,19 @@
|
||||
// "Replace with 'getOrDefault' method call" "true"
|
||||
import java.util.Map;
|
||||
|
||||
public class Main {
|
||||
private static final String NONE = "none";
|
||||
|
||||
private String str;
|
||||
|
||||
public void testGetOrDefault(Map<String, String> map, String key, Main other) {
|
||||
str = map.get(key);
|
||||
if(str == nul<caret>l) {
|
||||
/*
|
||||
block comment
|
||||
*/
|
||||
str = NONE;
|
||||
}
|
||||
System.out.println(str);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user