mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-01 02:38:59 +07:00
12 lines
313 B
Java
12 lines
313 B
Java
// "Replace iteration with bulk 'List.replaceAll' call" "true"
|
|
|
|
import java.util.*;
|
|
import java.util.function.UnaryOperator;
|
|
|
|
public class Main {
|
|
static class MyList extends ArrayList<String> {
|
|
public void myReplaceAll(UnaryOperator<String> operator) {
|
|
super.replaceAll(operator::apply);
|
|
}
|
|
}
|
|
} |