mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-20 11:36:16 +07:00
IDEA-163875 Inspection "Replace inefficient Stream API call chains ending with count()" should respect alignment settings
9 lines
224 B
Java
9 lines
224 B
Java
// "Replace Collection.stream().count() with Collection.size()" "true"
|
|
|
|
import java.util.Arrays;
|
|
|
|
class Test {
|
|
long cnt() {
|
|
return Arrays.asList('d', 'e', 'f')./*stream*/stream()./*count*/c<caret>ount()/*after*/;
|
|
}
|
|
} |