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 flagsCollectorsthat don't clearly express (im)mutability.ABugCheckerthat flags empty methods that seemingly can simply be deleted.ABugCheckerthat flags improperly formatted Error Prone test code.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 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 annotation array listings which aren't sorted lexicographically.ABugCheckerthat flags annotations that are not lexicographically sorted.ABugCheckerthat flags lambda expressions that can be replaced with method references.ABugCheckerthat flags likely missing Refaster annotations.ABugCheckerthat flags method invocations for which all arguments are wrapped usingArgumentMatchers.eq(boolean); this is redundant.ABugCheckerthat flags nesting ofOptionals.ABugCheckerthat flagsMonooperations that are known to be vacuous, given that they are invoked on aMonothat is known not to complete empty.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 unnecessaryRefaster.anyOf(Object[])usages.ABugCheckerthat suggests a canonical set of modifiers for Refaster class and method definitions.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 methods with Spring's@Scheduledannotation that lack New Relic Agent's@Trace(dispatcher = true).ABugCheckerthat flags SLF4J usages that are likely to be in error.ABugCheckerthat flags@RequestMappingannotations that can be written more concisely.ABugCheckerthat flags methods and constants that can and should be statically imported.ABugCheckerthat flags calls toString.toLowerCase()andString.toUpperCase(), as these methods implicitly rely on the environment's default locale.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.