Package tech.picnic.errorprone.bugpatterns


@CheckReturnValue @NullMarked package tech.picnic.errorprone.bugpatterns
Picnic Error Prone Contrib checks.
  • Classes
    Class
    Description
    A BugChecker that flags ambiguous @JsonCreators in enums.
    A BugChecker that flags AssertJ isEqualTo(null) checks for simplification.
    A BugChecker that flags redundant @Autowired constructor annotations.
    A BugChecker that flags annotations that could be written more concisely.
    A BugChecker that flags invocations of Class.getName() where Class.getCanonicalName() was likely meant.
    A BugChecker that flags Collectors that don't clearly express (im)mutability.
    A BugChecker that flags unnecessary local variable assignments preceding a return statement.
    A BugChecker that flags empty methods that seemingly can simply be deleted.
    A BugChecker that flags Mono.zip(reactor.core.publisher.Mono<? extends T1>, reactor.core.publisher.Mono<? extends T2>) and Mono.zipWith(reactor.core.publisher.Mono<? extends T2>) invocations with a Mono<Void> or Mono.empty() argument or receiver.
    A BugChecker that flags Ordering.explicit(Object, Object[])} invocations listing a subset of an enum type's values.
    A BugChecker that flags usages of Flux.flatMap(Function) and Flux.flatMapSequential(Function).
    A BugChecker that flags Flux operator usages that may implicitly cause the calling thread to be blocked.
    A BugChecker that flags string concatenations that produce a format string; in such cases the string concatenation should instead be deferred to the invoked method.
    A BugChecker that flags redundant identity conversions.
    A BugChecker that flags SortedSet property declarations inside @Value.Immutable- and @Value.Modifiable-annotated types that lack a @Value.NaturalOrder or @Value.ReverseOrder annotation.
    A BugChecker that flags lambda expressions that can be replaced with a method reference of the form T.class::isInstance.
    A BugChecker that flags non-final and non package-private JUnit test class declarations, unless abstract.
    A BugChecker that flags non-canonical JUnit method declarations.
    A BugChecker that flags nullary @ParameterizedTest test methods.
    A BugChecker that flags JUnit tests with a MethodSource annotation that can be replaced with an equivalent ValueSource annotation.
    A BugChecker that flags annotation array listings which aren't sorted lexicographically.
    A BugChecker that flags annotations that are not lexicographically sorted.
    A BugChecker that flags the use of Mockito.mock(Class) and Mockito.spy(Class) where instead the type to be mocked or spied can be derived from context.
    A BugChecker that flags method invocations for which all arguments are wrapped using ArgumentMatchers.eq(boolean); this is redundant.
    A BugChecker that flags usages of MongoDB $text filter usages.
    A BugChecker that flags nesting of Optionals.
    A BugChecker that flags Publisher<? extends Publisher> instances, unless the nested Publisher is a GroupedFlux.
    A BugChecker that flags Mono operations that are known to be vacuous, given that they are invoked on a Mono that is known not to complete empty.
    A BugChecker that flags static imports of type members that should *not* be statically imported.
    A BugChecker that flags Comparator#comparing* invocations that can be replaced with an equivalent alternative so as to avoid unnecessary (un)boxing.
    A BugChecker that flags redundant explicit string conversions.
    A BugChecker that flags @RequestMapping methods that have one or more parameters that appear to lack a relevant annotation.
    A BugChecker that flags @RequestParam parameters with an unsupported type.
    A BugChecker that flags SLF4J usages that are likely to be in error.
    A BugChecker that flags @RequestMapping annotations that can be written more concisely.
    A BugChecker that flags type members that can and should be statically imported.
    A BugChecker that flags String.format(String, Object...) invocations which can be replaced with a String.join(CharSequence, CharSequence...) or even a String.valueOf(java.lang.Object) invocation.
    A BugChecker that flags illegal time-zone related operations.