mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-10 18:09:38 +07:00
1. VariableNameGenerator instead of codeStyleManager#suggestUniqueVariableName 2. use tracker for inner comments 3. simplified references search using various util methods 4. added option to disable replaceAll suggestion
15 lines
479 B
Java
15 lines
479 B
Java
// "Replace with 'replaceAll' method call" "true"
|
|
|
|
import java.util.HashMap;
|
|
import java.util.Map;
|
|
|
|
class Main {
|
|
public void test() {
|
|
Map<String, String> map = new HashMap<>();
|
|
String defaultValue = "42";
|
|
map.put("foo", "bar");
|
|
/*1*/for<caret> /*2*/(Map.Entry<String, String> /*3*/entry : map./*4*/entrySet()) {
|
|
/*5*/map/*6*/.put(/*7*/entry./*8*/getKey(/*9*/),/*10*/ entry.getValue() +/*11*/ entry.getKey() +/*12*/ defaultValue + "baz");/*13*/
|
|
}
|
|
}
|
|
} |