mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-06 08:00:18 +07:00
GitOrigin-RevId: c4db6507c258e5611f6d47b9373a0c2531802345
13 lines
293 B
Java
13 lines
293 B
Java
// "Collapse loop with stream 'forEach()'" "INFORMATION"
|
|
|
|
import java.io.FileInputStream;
|
|
import java.io.FileNotFoundException;
|
|
import java.util.*;
|
|
|
|
class A {
|
|
public void foo(final Set<String> strings) throws FileNotFoundException {
|
|
strings.forEach(s -> new FileInputStream());
|
|
|
|
}
|
|
|
|
} |