mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-31 02:50:55 +07:00
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());
|
|
|
|
}
|
|
|
|
} |