mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-01 12:50:56 +07:00
14 lines
351 B
Java
14 lines
351 B
Java
// "Extract variable 'lowerCase' to 'map' operation" "false"
|
|
import java.util.*;
|
|
import java.util.stream.*;
|
|
|
|
public class Test {
|
|
boolean test(List<String> list) {
|
|
return list.stream()
|
|
.anyMatch(s -> {
|
|
System.out.println(s);
|
|
String <caret>lowerCase = s.toLowerCase();
|
|
return "test".equals(lowerCase);
|
|
});
|
|
}
|
|
} |