mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-04 12:03:57 +07:00
GitOrigin-RevId: 6b6405ee4491ad1d58947547c40df6fb2d291ab7
13 lines
327 B
Java
13 lines
327 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()
|
|
.anyMatch(s -> {
|
|
String <caret>lowerCase = s.toLowerCase();
|
|
return "test".equals(lowerCase);
|
|
});
|
|
}
|
|
} |