mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-09 16:39:37 +07:00
13 lines
206 B
Java
13 lines
206 B
Java
// "Replace with forEach" "true"
|
|
import java.util.ArrayList;
|
|
import java.util.List;
|
|
|
|
class Sample {
|
|
List<String> foo = new ArrayList<>();
|
|
{
|
|
foo.forEach(this::bar);
|
|
}
|
|
|
|
void bar(String s){}
|
|
}
|