mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-11 08:36:57 +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
14 lines
384 B
Java
14 lines
384 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*//*8*//*9*//*2*//*3*//*4*//*5*/
|
|
map/*6*/.replaceAll(/*7*//*10*/ (k, v) -> v +/*11*/ k +/*12*/ defaultValue + "baz");/*13*/
|
|
}
|
|
} |