mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-27 19:28:58 +07:00
GitOrigin-RevId: 3c191627d242960cb0e8f846529f3a2b5627b5c8
16 lines
492 B
Java
16 lines
492 B
Java
// "Replace with '.keySet().stream()'" "true-preview"
|
|
|
|
import org.intellij.lang.annotations.Language;
|
|
|
|
class Test {
|
|
public void testAnyMatch() {
|
|
@Language("JAVA")
|
|
String javaText = "import java.util.*;\n" +
|
|
"\n" +
|
|
"class X {\n" +
|
|
" void test(Map<String, Integer> map) {\n" +
|
|
" map.keySet().stream().<caret>filter(x -> !x.isEmpty()).forEach(s -> System.out.println(\"hello\"+s));\n" +
|
|
" }\n" +
|
|
"}\n";
|
|
}
|
|
} |