mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-02 11:18:16 +07:00
18 lines
381 B
Java
18 lines
381 B
Java
// "Replace Stream API chain with loop" "true"
|
|
|
|
import java.util.List;
|
|
import java.util.Objects;
|
|
|
|
public class Main {
|
|
String test(List<List<String>> strings) {
|
|
for (List<String> string : strings) {
|
|
if (Objects.nonNull(string)) {
|
|
for (String s : string) {
|
|
return "abc";
|
|
}
|
|
}
|
|
}
|
|
return "xyz";
|
|
}
|
|
}
|