mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-25 19:21:16 +07:00
13 lines
319 B
Java
13 lines
319 B
Java
// "Extract variable 'lowerCase' to 'map' operation" "true"
|
|
import java.util.*;
|
|
import java.util.stream.*;
|
|
|
|
public class Test {
|
|
boolean test(List<String> list) {
|
|
return list.stream()
|
|
.anyMatch(s -> {
|
|
String <caret>lowerCase = s.toLowerCase();
|
|
return "test".equals(lowerCase);
|
|
});
|
|
}
|
|
} |