mirror of
https://github.com/jlengrand/error-prone-support.git
synced 2026-03-10 08:11:25 +00:00
Apply suggestion
This commit is contained in:
committed by
Stephan Schroevers
parent
d3b3d433f9
commit
cb440d2077
@@ -59,7 +59,7 @@ public final class FluxFlatMapUsage extends BugChecker
|
||||
.namedAnyOf("flatMap", "flatMapSequential")
|
||||
.withParameters(Function.class.getName());
|
||||
private static final com.google.errorprone.suppliers.Supplier<Type> FLUX =
|
||||
Suppliers.typeFromClass(Flux.class);
|
||||
Suppliers.typeFromString("reactor.core.publisher.Flux");
|
||||
|
||||
@Override
|
||||
public Description matchMethodInvocation(MethodInvocationTree tree, VisitorState state) {
|
||||
|
||||
@@ -76,6 +76,7 @@ final class FluxFlatMapUsageTest {
|
||||
"",
|
||||
"class A {",
|
||||
" private static final int MAX_CONCURRENCY = 8;",
|
||||
"",
|
||||
" void m() {",
|
||||
" Flux.just(1).flatMap(Flux::just);",
|
||||
" Flux.just(1).flatMapSequential(Flux::just);",
|
||||
@@ -89,6 +90,7 @@ final class FluxFlatMapUsageTest {
|
||||
"",
|
||||
"class A {",
|
||||
" private static final int MAX_CONCURRENCY = 8;",
|
||||
"",
|
||||
" void m() {",
|
||||
" Flux.just(1).concatMap(Flux::just);",
|
||||
" Flux.just(1).concatMap(Flux::just);",
|
||||
|
||||
Reference in New Issue
Block a user