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