Sign in
◑
Theme
android
/
platform
/
tools
/
idea
/
studio-master-dev
/
.
/
java
/
java-tests
/
testData
/
inspection
/
streamApiCallChains
/
afterAnyMatchNegatedPrimitive.java
blob: c488190c82b3f40747990ecb7448794935cb4e0c [
file
]
// "Replace !LongStream.anyMatch(...) with noneMatch(...)" "true"
import
java
.
util
.
stream
.*;
class
Test
{
public
boolean
testAnyMatch
(
long
[]
data
)
{
if
(
LongStream
.
of
(
data
).
noneMatch
(
i
->
i
>
0
))
return
true
;
}
}