Package tech.picnic.errorprone.bugpatterns
@CheckReturnValue
@NullMarked
package tech.picnic.errorprone.bugpatterns
Picnic Error Prone Contrib checks.
-
ClassesClassDescriptionA
BugCheckerthat flags ambiguous@JsonCreators in enums.ABugCheckerthat flags AssertJisEqualTo(null)checks for simplification.ABugCheckerthat flags redundant@Autowiredconstructor annotations.ABugCheckerthat flags annotations that could be written more concisely.ABugCheckerthat flags invocations ofClass.getName()whereClass.getCanonicalName()was likely meant.ABugCheckerthat flagsCollectorsthat don't clearly express (im)mutability.ABugCheckerthat flags unnecessary local variable assignments preceding a return statement.ABugCheckerthat flags empty methods that seemingly can simply be deleted.ABugCheckerthat flagsMono.zip(reactor.core.publisher.Mono<? extends T1>, reactor.core.publisher.Mono<? extends T2>)andMono.zipWith(reactor.core.publisher.Mono<? extends T2>)invocations with aMono<Void>orMono.empty()argument or receiver.ABugCheckerthat flagsOrdering.explicit(Object, Object[])} invocations listing a subset of an enum type's values.ABugCheckerthat flags usages ofFlux.flatMap(Function)andFlux.flatMapSequential(Function).ABugCheckerthat flagsFluxoperator usages that may implicitly cause the calling thread to be blocked.ABugCheckerthat flags string concatenations that produce a format string; in such cases the string concatenation should instead be deferred to the invoked method.ABugCheckerthat flags redundant identity conversions.ABugCheckerthat flagsSortedSetproperty declarations inside@Value.Immutable- and@Value.Modifiable-annotated types that lack a@Value.NaturalOrderor@Value.ReverseOrderannotation.ABugCheckerthat flags lambda expressions that can be replaced with a method reference of the formT.class::isInstance.ABugCheckerthat flags non-final and non package-private JUnit test class declarations, unless abstract.ABugCheckerthat flags non-canonical JUnit method declarations.ABugCheckerthat flags nullary@ParameterizedTesttest methods.ABugCheckerthat flags JUnit tests with aMethodSourceannotation that can be replaced with an equivalentValueSourceannotation.ABugCheckerthat flags annotation array listings which aren't sorted lexicographically.ABugCheckerthat flags annotations that are not lexicographically sorted.ABugCheckerthat flags the use ofMockito.mock(Class)andMockito.spy(Class)where instead the type to be mocked or spied can be derived from context.ABugCheckerthat flags method invocations for which all arguments are wrapped usingArgumentMatchers.eq(boolean); this is redundant.ABugCheckerthat flags usages of MongoDB$textfilter usages.ABugCheckerthat flags nesting ofOptionals.ABugCheckerthat flagsPublisher<? extends Publisher>instances, unless the nestedPublisheris aGroupedFlux.ABugCheckerthat flagsMonooperations that are known to be vacuous, given that they are invoked on aMonothat is known not to complete empty.ABugCheckerthat flags static imports of type members that should *not* be statically imported.ABugCheckerthat flagsComparator#comparing*invocations that can be replaced with an equivalent alternative so as to avoid unnecessary (un)boxing.ABugCheckerthat flags redundant explicit string conversions.ABugCheckerthat flags@RequestMappingmethods that have one or more parameters that appear to lack a relevant annotation.ABugCheckerthat flags@RequestParamparameters with an unsupported type.ABugCheckerthat flags SLF4J usages that are likely to be in error.ABugCheckerthat flags@RequestMappingannotations that can be written more concisely.ABugCheckerthat flags type members that can and should be statically imported.ABugCheckerthat flagsString.format(String, Object...)invocations which can be replaced with aString.join(CharSequence, CharSequence...)or even aString.valueOf(java.lang.Object)invocation.ABugCheckerthat flags illegal time-zone related operations.