UnnecessarySetDefault
Unnecessary call to NullPointerTester#setDefault

Category
Severity
SUGGESTION
Maturity

The problem

NullPointerTester comes with built-in support for some well known types like Optional and ImmutableList via guava’s ArbitraryInstances class. Explicitly calling setDefault for these types is unnecessary.

Suppression

Suppress false positives by adding the suppression annotation @SuppressWarnings("UnnecessarySetDefault") to the enclosing element.