mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-28 23:50:57 +07:00
10 lines
289 B
Java
10 lines
289 B
Java
// "Extract variable 'lowerCase' to 'map' operation" "true-preview"
|
|
import java.util.*;
|
|
import java.util.stream.*;
|
|
|
|
public class Test {
|
|
boolean test(List<String> list) {
|
|
return list.stream().map(String::toLowerCase)
|
|
.anyMatch(lowerCase -> "test".equals(lowerCase));
|
|
}
|
|
} |