diff --git a/error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/NonEmptyMono.java b/error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/NonEmptyMono.java index d9835641cd7..a2edf92cd2f 100644 --- a/error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/NonEmptyMono.java +++ b/error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/NonEmptyMono.java @@ -42,7 +42,7 @@ public final class NonEmptyMono extends BugChecker implements MethodInvocationTr private static final Matcher MONO_SIZE_CHECK = instanceMethod() .onDescendantOf("reactor.core.publisher.Mono") - .namedAnyOf("single", "defaultIfEmpty", "switchIfEmpty"); + .namedAnyOf("defaultIfEmpty", "single", "switchIfEmpty"); private static final Matcher SINGLETON_MONO = anyOf( instanceMethod()