Sign in
◑
Theme
android
/
platform
/
tools
/
idea
/
studio-master-dev
/
.
/
java
/
java-tests
/
testData
/
inspection
/
inefficientStreamCount
/
afterStreamCountComparisonNoneMatch.java
blob: be19aefdf8f1a254ebcd31c166f1cc6b420346d4 [
file
]
// "Replace Stream().filter().count() == 0 with stream.noneMatch()" "true"
import
java
.
util
.
Arrays
;
class
Test
{
long
cnt
()
{
return
Arrays
.
asList
(
"ds"
,
"e"
,
"fe"
).
stream
().
noneMatch
(
s
->
s
.
length
()
>
1
);
}
}