Remove unnecessary NullAway suppressions

Signed-off-by: Manu Sridharan <msridhar@gmail.com>

See gh-51591
This commit is contained in:
Manu Sridharan
2026-09-07 08:18:11 +01:00
committed by Andy Wilkinson
parent d94755304a
commit 25a3f8feb9
148 changed files with 5 additions and 241 deletions
@@ -38,7 +38,6 @@ import static org.assertj.core.api.Assertions.assertThat;
class SpringBootPluginTests { class SpringBootPluginTests {
@TempDir @TempDir
@SuppressWarnings("NullAway.Init")
File temp; File temp;
@Test @Test
@@ -43,7 +43,6 @@ import static org.assertj.core.api.Assertions.assertThatException;
class BuildInfoTests { class BuildInfoTests {
@TempDir @TempDir
@SuppressWarnings("NullAway.Init")
File temp; File temp;
@Test @Test
@@ -80,7 +80,6 @@ import static org.mockito.Mockito.mock;
abstract class AbstractBootArchiveTests<T extends Jar & BootArchive> { abstract class AbstractBootArchiveTests<T extends Jar & BootArchive> {
@TempDir @TempDir
@SuppressWarnings("NullAway.Init")
File temp; File temp;
private final Class<T> taskClass; private final Class<T> taskClass;
@@ -38,7 +38,6 @@ class RunArguments {
this(parseArgs(arguments)); this(parseArgs(arguments));
} }
@SuppressWarnings("NullAway") // Maven can't handle nullable arrays
RunArguments(@Nullable String[] args) { RunArguments(@Nullable String[] args) {
this((args != null) ? Arrays.asList(args) : null); this((args != null) ? Arrays.asList(args) : null);
} }
@@ -57,11 +57,9 @@ import static org.mockito.Mockito.times;
class ArtifactsLibrariesTests { class ArtifactsLibrariesTests {
@Mock @Mock
@SuppressWarnings("NullAway.Init")
private Artifact artifact; private Artifact artifact;
@Mock @Mock
@SuppressWarnings("NullAway.Init")
private ArtifactHandler artifactHandler; private ArtifactHandler artifactHandler;
private Set<Artifact> artifacts; private Set<Artifact> artifacts;
@@ -71,11 +69,9 @@ class ArtifactsLibrariesTests {
private ArtifactsLibraries libs; private ArtifactsLibraries libs;
@Mock @Mock
@SuppressWarnings("NullAway.Init")
private LibraryCallback callback; private LibraryCallback callback;
@Captor @Captor
@SuppressWarnings("NullAway.Init")
private ArgumentCaptor<Library> libraryCaptor; private ArgumentCaptor<Library> libraryCaptor;
@BeforeEach @BeforeEach
@@ -49,7 +49,6 @@ import static org.mockito.Mockito.mock;
class DependencyFilterMojoTests { class DependencyFilterMojoTests {
@TempDir @TempDir
@SuppressWarnings("NullAway.Init")
static Path temp; static Path temp;
@Test @Test
@@ -39,7 +39,6 @@ import static org.mockito.Mockito.mock;
class JarTypeFilterTests { class JarTypeFilterTests {
@TempDir @TempDir
@SuppressWarnings("NullAway.Init")
Path temp; Path temp;
@Test @Test
@@ -61,7 +61,6 @@ class BuildRequestTests {
private static final ZoneId UTC = ZoneId.of("UTC"); private static final ZoneId UTC = ZoneId.of("UTC");
@TempDir @TempDir
@SuppressWarnings("NullAway.Init")
File tempDir; File tempDir;
@Test @Test
@@ -50,7 +50,6 @@ import static org.mockito.Mockito.mock;
class DirectoryBuildpackTests { class DirectoryBuildpackTests {
@TempDir @TempDir
@SuppressWarnings("NullAway.Init")
File temp; File temp;
private File buildpackDir; private File buildpackDir;
@@ -62,7 +62,6 @@ class EphemeralBuilderTests extends AbstractJsonTests {
private static final int EXISTING_IMAGE_LAYER_COUNT = 43; private static final int EXISTING_IMAGE_LAYER_COUNT = 43;
@TempDir @TempDir
@SuppressWarnings("NullAway.Init")
File temp; File temp;
private final BuildOwner owner = BuildOwner.of(123, 456); private final BuildOwner owner = BuildOwner.of(123, 456);
@@ -105,7 +105,6 @@ class DockerApiTests {
StandardCharsets.UTF_8); StandardCharsets.UTF_8);
@Mock @Mock
@SuppressWarnings("NullAway.Init")
private HttpTransport http; private HttpTransport http;
private DockerApi dockerApi; private DockerApi dockerApi;
@@ -222,19 +221,15 @@ class DockerApiTests {
private ImageApi api; private ImageApi api;
@Mock @Mock
@SuppressWarnings("NullAway.Init")
private UpdateListener<PullImageUpdateEvent> pullListener; private UpdateListener<PullImageUpdateEvent> pullListener;
@Mock @Mock
@SuppressWarnings("NullAway.Init")
private UpdateListener<PushImageUpdateEvent> pushListener; private UpdateListener<PushImageUpdateEvent> pushListener;
@Mock @Mock
@SuppressWarnings("NullAway.Init")
private UpdateListener<LoadImageUpdateEvent> loadListener; private UpdateListener<LoadImageUpdateEvent> loadListener;
@Captor @Captor
@SuppressWarnings("NullAway.Init")
private ArgumentCaptor<IOConsumer<OutputStream>> writer; private ArgumentCaptor<IOConsumer<OutputStream>> writer;
@BeforeEach @BeforeEach
@@ -632,11 +627,9 @@ class DockerApiTests {
private ContainerApi api; private ContainerApi api;
@Captor @Captor
@SuppressWarnings("NullAway.Init")
private ArgumentCaptor<IOConsumer<OutputStream>> writer; private ArgumentCaptor<IOConsumer<OutputStream>> writer;
@Mock @Mock
@SuppressWarnings("NullAway.Init")
private UpdateListener<LogUpdateEvent> logListener; private UpdateListener<LogUpdateEvent> logListener;
@BeforeEach @BeforeEach
@@ -68,19 +68,15 @@ class HttpClientTransportTests {
private static final String APPLICATION_X_TAR = "application/x-tar"; private static final String APPLICATION_X_TAR = "application/x-tar";
@Mock @Mock
@SuppressWarnings("NullAway.Init")
private HttpClient client; private HttpClient client;
@Mock @Mock
@SuppressWarnings("NullAway.Init")
private ClassicHttpResponse response; private ClassicHttpResponse response;
@Mock @Mock
@SuppressWarnings("NullAway.Init")
private HttpEntity entity; private HttpEntity entity;
@Mock @Mock
@SuppressWarnings("NullAway.Init")
private InputStream content; private InputStream content;
private HttpClientTransport http; private HttpClientTransport http;
@@ -45,7 +45,6 @@ import static org.assertj.core.api.Assertions.assertThatIllegalStateException;
class FilePermissionsTests { class FilePermissionsTests {
@TempDir @TempDir
@SuppressWarnings("NullAway.Init")
Path tempDir; Path tempDir;
@Test @Test
@@ -40,7 +40,6 @@ import static org.assertj.core.api.Assertions.assertThat;
class TarArchiveTests { class TarArchiveTests {
@TempDir @TempDir
@SuppressWarnings("NullAway.Init")
File tempDir; File tempDir;
@Test @Test
@@ -42,7 +42,6 @@ import static org.assertj.core.api.Assertions.assertThatIllegalStateException;
class ZipFileTarArchiveTests { class ZipFileTarArchiveTests {
@TempDir @TempDir
@SuppressWarnings("NullAway.Init")
File tempDir; File tempDir;
@Test @Test
@@ -48,11 +48,9 @@ class CommandRunnerTests {
private CommandRunner commandRunner; private CommandRunner commandRunner;
@Mock @Mock
@SuppressWarnings("NullAway.Init")
private Command regularCommand; private Command regularCommand;
@Mock @Mock
@SuppressWarnings("NullAway.Init")
private Command anotherCommand; private Command anotherCommand;
private final Set<Call> calls = EnumSet.noneOf(Call.class); private final Set<Call> calls = EnumSet.noneOf(Call.class);
@@ -63,15 +63,12 @@ class ConditionEvaluationReportTests {
private ConditionEvaluationReport report; private ConditionEvaluationReport report;
@Mock @Mock
@SuppressWarnings("NullAway.Init")
private Condition condition1; private Condition condition1;
@Mock @Mock
@SuppressWarnings("NullAway.Init")
private Condition condition2; private Condition condition2;
@Mock @Mock
@SuppressWarnings("NullAway.Init")
private Condition condition3; private Condition condition3;
private @Nullable ConditionOutcome outcome1; private @Nullable ConditionOutcome outcome1;
@@ -101,7 +101,6 @@ class PropertyPlaceholderAutoConfigurationTests {
static class PlaceholderConfig { static class PlaceholderConfig {
@Value("${fruit:apple}") @Value("${fruit:apple}")
@SuppressWarnings("NullAway.Init")
private String fruit; private String fruit;
} }
@@ -53,7 +53,6 @@ class TemplateAvailabilityProvidersTests {
private TemplateAvailabilityProviders providers; private TemplateAvailabilityProviders providers;
@Mock @Mock
@SuppressWarnings("NullAway.Init")
private TemplateAvailabilityProvider provider; private TemplateAvailabilityProvider provider;
private final String view = "view"; private final String view = "view";
@@ -63,7 +62,6 @@ class TemplateAvailabilityProvidersTests {
private final MockEnvironment environment = new MockEnvironment(); private final MockEnvironment environment = new MockEnvironment();
@Mock @Mock
@SuppressWarnings("NullAway.Init")
private ResourceLoader resourceLoader; private ResourceLoader resourceLoader;
@BeforeEach @BeforeEach
@@ -59,7 +59,6 @@ import static org.assertj.core.api.Assertions.assertThat;
class DockerCliIntegrationTests { class DockerCliIntegrationTests {
@TempDir @TempDir
@SuppressWarnings("NullAway.Init")
private static Path tempDir; private static Path tempDir;
@Test @Test
@@ -47,7 +47,6 @@ import static org.assertj.core.api.Assertions.entry;
class DefaultRunningServiceTests { class DefaultRunningServiceTests {
@TempDir @TempDir
@SuppressWarnings("NullAway.Init")
File temp; File temp;
private DefaultRunningService runningService; private DefaultRunningService runningService;
@@ -39,7 +39,6 @@ import static org.assertj.core.api.Assertions.assertThatIllegalStateException;
class DockerComposeFileTests { class DockerComposeFileTests {
@TempDir @TempDir
@SuppressWarnings("NullAway.Init")
File temp; File temp;
@Test @Test
@@ -37,7 +37,6 @@ import static org.assertj.core.api.Assertions.assertThat;
class DockerComposeOriginTests { class DockerComposeOriginTests {
@TempDir @TempDir
@SuppressWarnings("NullAway.Init")
File temp; File temp;
@Test @Test
@@ -69,7 +69,6 @@ import static org.mockito.Mockito.never;
class DockerComposeLifecycleManagerTests { class DockerComposeLifecycleManagerTests {
@TempDir @TempDir
@SuppressWarnings("NullAway.Init")
File temp; File temp;
private DockerComposeFile dockerComposeFile; private DockerComposeFile dockerComposeFile;
@@ -64,7 +64,6 @@ class JsonContentAssertTests {
private static final JSONComparator COMPARATOR = new DefaultComparator(JSONCompareMode.LENIENT); private static final JSONComparator COMPARATOR = new DefaultComparator(JSONCompareMode.LENIENT);
@TempDir @TempDir
@SuppressWarnings("NullAway.Init")
public Path tempDir; public Path tempDir;
private File temp; private File temp;
@@ -38,7 +38,6 @@ import org.springframework.lang.Contract;
class DefaultApplicationContextFactory implements ApplicationContextFactory { class DefaultApplicationContextFactory implements ApplicationContextFactory {
// Method reference is not detected with correct nullability // Method reference is not detected with correct nullability
@SuppressWarnings("NullAway")
@Override @Override
public @Nullable Class<? extends ConfigurableEnvironment> getEnvironmentType( public @Nullable Class<? extends ConfigurableEnvironment> getEnvironmentType(
@Nullable WebApplicationType webApplicationType) { @Nullable WebApplicationType webApplicationType) {
@@ -46,14 +45,12 @@ class DefaultApplicationContextFactory implements ApplicationContextFactory {
} }
// Method reference is not detected with correct nullability // Method reference is not detected with correct nullability
@SuppressWarnings("NullAway")
@Override @Override
public @Nullable ConfigurableEnvironment createEnvironment(@Nullable WebApplicationType webApplicationType) { public @Nullable ConfigurableEnvironment createEnvironment(@Nullable WebApplicationType webApplicationType) {
return getFromSpringFactories(webApplicationType, ApplicationContextFactory::createEnvironment, null); return getFromSpringFactories(webApplicationType, ApplicationContextFactory::createEnvironment, null);
} }
// Method reference is not detected with correct nullability // Method reference is not detected with correct nullability
@SuppressWarnings("NullAway")
@Override @Override
public ConfigurableApplicationContext create(@Nullable WebApplicationType webApplicationType) { public ConfigurableApplicationContext create(@Nullable WebApplicationType webApplicationType) {
try { try {
@@ -345,7 +345,6 @@ public class Binder {
* @return the bound or created object * @return the bound or created object
* @since 2.2.0 * @since 2.2.0
*/ */
@SuppressWarnings("NullAway") // https://github.com/uber/NullAway/issues/1232
public <T> T bindOrCreate(ConfigurationPropertyName name, Bindable<T> target, @Nullable BindHandler handler) { public <T> T bindOrCreate(ConfigurationPropertyName name, Bindable<T> target, @Nullable BindHandler handler) {
return bind(name, target, handler, true); return bind(name, target, handler, true);
} }
@@ -635,7 +635,6 @@ public final class ConfigurationPropertyName implements Comparable<Configuration
* @return a {@link ConfigurationPropertyName} instance * @return a {@link ConfigurationPropertyName} instance
* @throws InvalidConfigurationPropertyNameException if the name is not valid * @throws InvalidConfigurationPropertyNameException if the name is not valid
*/ */
@SuppressWarnings("NullAway") // See https://github.com/uber/NullAway/issues/1232
public static ConfigurationPropertyName of(@Nullable CharSequence name) { public static ConfigurationPropertyName of(@Nullable CharSequence name) {
return of(name, false); return of(name, false);
} }
@@ -665,7 +664,6 @@ public final class ConfigurationPropertyName implements Comparable<Configuration
return (elements != null) ? new ConfigurationPropertyName(elements) : null; return (elements != null) ? new ConfigurationPropertyName(elements) : null;
} }
@SuppressWarnings("NullAway") // See https://github.com/uber/NullAway/issues/1232
private static Elements probablySingleElementOf(CharSequence name) { private static Elements probablySingleElementOf(CharSequence name) {
return elementsOf(name, false, 1); return elementsOf(name, false, 1);
} }
@@ -347,7 +347,7 @@ class JsonValueWriter {
} }
// Lambda isn't detected with the correct nullability // Lambda isn't detected with the correct nullability
@SuppressWarnings({ "unchecked", "NullAway" }) @SuppressWarnings("unchecked")
private <V> @Nullable V processValue(@Nullable V value, ValueProcessor<?> valueProcessor) { private <V> @Nullable V processValue(@Nullable V value, ValueProcessor<?> valueProcessor) {
return (V) LambdaSafe return (V) LambdaSafe
.callback(ValueProcessor.class, valueProcessor, this.path, new @Nullable Object[] { value }) .callback(ValueProcessor.class, valueProcessor, this.path, new @Nullable Object[] { value })
@@ -84,7 +84,6 @@ final class StructuredLogLayout extends AbstractStringLayout {
private String format; private String format;
@PluginBuilderAttribute @PluginBuilderAttribute
@SuppressWarnings("NullAway.Init")
private String charset = StandardCharsets.UTF_8.name(); private String charset = StandardCharsets.UTF_8.name();
public Builder setFormat(String format) { public Builder setFormat(String format) {
@@ -136,7 +136,6 @@ public class ContextPairs {
* @param <V> the map value type * @param <V> the map value type
* @param extractor the extractor used to provide the map * @param extractor the extractor used to provide the map
*/ */
@SuppressWarnings("NullAway") // Doesn't detect lambda with correct nullability
public <V> void addMapEntries(Function<T, Map<String, V>> extractor) { public <V> void addMapEntries(Function<T, Map<String, V>> extractor) {
Function<T, @Nullable Iterable<Map.Entry<String, V>>> elementsExtractor = extractor.andThen(Map::entrySet); Function<T, @Nullable Iterable<Map.Entry<String, V>>> elementsExtractor = extractor.andThen(Map::entrySet);
add(elementsExtractor, Map.Entry::getKey, Map.Entry::getValue); add(elementsExtractor, Map.Entry::getKey, Map.Entry::getValue);
@@ -82,7 +82,6 @@ public record ElasticCommonSchemaProperties(Service service) {
static final Service NONE = new Service(null, null, null, null); static final Service NONE = new Service(null, null, null, null);
@SuppressWarnings("NullAway") // Doesn't detect lambda with correct nullability
void jsonMembers(Members<?> members) { void jsonMembers(Members<?> members) {
members.add("service").usingMembers((service) -> { members.add("service").usingMembers((service) -> {
service.add("name", this::name).whenHasLength(); service.add("name", this::name).whenHasLength();
@@ -58,7 +58,6 @@ public record GraylogExtendedLogFormatProperties(@Nullable String host, Service
* Add {@link JsonWriter} members for the service. * Add {@link JsonWriter} members for the service.
* @param members the members to add to * @param members the members to add to
*/ */
@SuppressWarnings("NullAway") // Doesn't detect lambda with correct nullability
public void jsonMembers(JsonWriter.Members<?> members) { public void jsonMembers(JsonWriter.Members<?> members) {
members.add("host", this::host).whenHasLength(); members.add("host", this::host).whenHasLength();
this.service.jsonMembers(members); this.service.jsonMembers(members);
@@ -91,7 +90,6 @@ public record GraylogExtendedLogFormatProperties(@Nullable String host, Service
return new Service(version); return new Service(version);
} }
@SuppressWarnings("NullAway") // Doesn't detect lambda with correct nullability
void jsonMembers(JsonWriter.Members<?> members) { void jsonMembers(JsonWriter.Members<?> members) {
members.add("_service_version", this::version).whenHasLength(); members.add("_service_version", this::version).whenHasLength();
} }
@@ -60,7 +60,6 @@ class BannerTests {
} }
@Captor @Captor
@SuppressWarnings("NullAway.Init")
private ArgumentCaptor<Class<?>> sourceClassCaptor; private ArgumentCaptor<Class<?>> sourceClassCaptor;
@Test @Test
@@ -57,7 +57,6 @@ class ApplicationPidFileWriterTests {
new String[] {}, mock(ConfigurableApplicationContext.class)); new String[] {}, mock(ConfigurableApplicationContext.class));
@TempDir @TempDir
@SuppressWarnings("NullAway.Init")
File tempDir; File tempDir;
@BeforeEach @BeforeEach
@@ -63,7 +63,6 @@ class ConfigDataEnvironmentPostProcessorImportCombinedWithProfileSpecificIntegra
private SpringApplication application; private SpringApplication application;
@TempDir @TempDir
@SuppressWarnings("NullAway.Init")
public File temp; public File temp;
@BeforeEach @BeforeEach
@@ -86,7 +86,6 @@ class ConfigDataEnvironmentPostProcessorIntegrationTests {
private SpringApplication application; private SpringApplication application;
@TempDir @TempDir
@SuppressWarnings("NullAway.Init")
public File temp; public File temp;
@BeforeEach @BeforeEach
@@ -47,31 +47,24 @@ class ConfigDataImporterTests {
private final DeferredLogFactory logFactory = Supplier::get; private final DeferredLogFactory logFactory = Supplier::get;
@Mock @Mock
@SuppressWarnings("NullAway.Init")
private ConfigDataLocationResolvers resolvers; private ConfigDataLocationResolvers resolvers;
@Mock @Mock
@SuppressWarnings("NullAway.Init")
private ConfigDataLoaders loaders; private ConfigDataLoaders loaders;
@Mock @Mock
@SuppressWarnings("NullAway.Init")
private Binder binder; private Binder binder;
@Mock @Mock
@SuppressWarnings("NullAway.Init")
private ConfigDataLocationResolverContext locationResolverContext; private ConfigDataLocationResolverContext locationResolverContext;
@Mock @Mock
@SuppressWarnings("NullAway.Init")
private ConfigDataLoaderContext loaderContext; private ConfigDataLoaderContext loaderContext;
@Mock @Mock
@SuppressWarnings("NullAway.Init")
private ConfigDataActivationContext activationContext; private ConfigDataActivationContext activationContext;
@Mock @Mock
@SuppressWarnings("NullAway.Init")
private Profiles profiles; private Profiles profiles;
@BeforeEach @BeforeEach
@@ -56,19 +56,15 @@ class ConfigDataLocationResolversTests {
private final DefaultBootstrapContext bootstrapContext = new DefaultBootstrapContext(); private final DefaultBootstrapContext bootstrapContext = new DefaultBootstrapContext();
@Mock @Mock
@SuppressWarnings("NullAway.Init")
private Binder binder; private Binder binder;
@Mock @Mock
@SuppressWarnings("NullAway.Init")
private ConfigDataLocationResolverContext context; private ConfigDataLocationResolverContext context;
@Mock @Mock
@SuppressWarnings("NullAway.Init")
private Profiles profiles; private Profiles profiles;
@TempDir @TempDir
@SuppressWarnings("NullAway.Init")
private File tempDir; private File tempDir;
@Test @Test
@@ -49,7 +49,6 @@ class ConfigDataResourceNotFoundExceptionTests {
private File missing; private File missing;
@TempDir @TempDir
@SuppressWarnings("NullAway.Init")
File temp; File temp;
@BeforeEach @BeforeEach
@@ -44,7 +44,6 @@ class ConfigTreeConfigDataLoaderTests {
private final ConfigDataLoaderContext loaderContext = mock(ConfigDataLoaderContext.class); private final ConfigDataLoaderContext loaderContext = mock(ConfigDataLoaderContext.class);
@TempDir @TempDir
@SuppressWarnings("NullAway.Init")
Path directory; Path directory;
@Test @Test
@@ -42,7 +42,6 @@ class ConfigTreeConfigDataLocationResolverTests {
private final ConfigDataLocationResolverContext context = mock(ConfigDataLocationResolverContext.class); private final ConfigDataLocationResolverContext context = mock(ConfigDataLocationResolverContext.class);
@TempDir @TempDir
@SuppressWarnings("NullAway.Init")
File temp; File temp;
@Test @Test
@@ -40,7 +40,6 @@ class LocationResourceLoaderTests {
private final LocationResourceLoader loader = new LocationResourceLoader(new DefaultResourceLoader()); private final LocationResourceLoader loader = new LocationResourceLoader(new DefaultResourceLoader());
@TempDir @TempDir
@SuppressWarnings("NullAway.Init")
File temp; File temp;
@Test @Test
@@ -120,7 +120,6 @@ class LoggingApplicationListenerTests {
private final GenericApplicationContext context = new GenericApplicationContext(); private final GenericApplicationContext context = new GenericApplicationContext();
@TempDir @TempDir
@SuppressWarnings("NullAway.Init")
public Path tempDir; public Path tempDir;
private File logFile; private File logFile;
@@ -54,7 +54,6 @@ import static org.mockito.BDDMockito.then;
class BindConverterTests { class BindConverterTests {
@Mock @Mock
@SuppressWarnings("NullAway.Init")
private Consumer<PropertyEditorRegistry> propertyEditorInitializer; private Consumer<PropertyEditorRegistry> propertyEditorInitializer;
@Test @Test
@@ -44,15 +44,12 @@ import static org.mockito.BDDMockito.then;
class BindResultTests { class BindResultTests {
@Mock @Mock
@SuppressWarnings("NullAway.Init")
private Consumer<String> consumer; private Consumer<String> consumer;
@Mock @Mock
@SuppressWarnings("NullAway.Init")
private Function<String, String> mapper; private Function<String, String> mapper;
@Mock @Mock
@SuppressWarnings("NullAway.Init")
private Supplier<String> supplier; private Supplier<String> supplier;
@Test @Test
@@ -49,7 +49,6 @@ class BoundPropertiesTrackingBindHandlerTests {
private Binder binder; private Binder binder;
@Mock @Mock
@SuppressWarnings("NullAway.Init")
private Consumer<ConfigurationProperty> consumer; private Consumer<ConfigurationProperty> consumer;
@BeforeEach @BeforeEach
@@ -40,7 +40,6 @@ import static org.assertj.core.api.Assertions.assertThatIllegalArgumentException
class ConfigurationPropertyNameTests { class ConfigurationPropertyNameTests {
@Test @Test
@SuppressWarnings("NullAway") // Test null check
void ofNameShouldNotBeNull() { void ofNameShouldNotBeNull() {
assertThatIllegalArgumentException().isThrownBy(() -> ConfigurationPropertyName.of(null)) assertThatIllegalArgumentException().isThrownBy(() -> ConfigurationPropertyName.of(null))
.withMessageContaining("'name' must not be null"); .withMessageContaining("'name' must not be null");
@@ -39,7 +39,6 @@ import static org.assertj.core.api.Assertions.assertThat;
class StringToFileConverterTests { class StringToFileConverterTests {
@TempDir @TempDir
@SuppressWarnings("NullAway.Init")
File temp; File temp;
@ConversionServiceTest @ConversionServiceTest
@@ -49,7 +49,6 @@ import static org.assertj.core.api.Assertions.assertThatIllegalStateException;
class ConfigTreePropertySourceTests { class ConfigTreePropertySourceTests {
@TempDir @TempDir
@SuppressWarnings("NullAway.Init")
Path directory; Path directory;
@Test @Test
@@ -44,7 +44,6 @@ import static org.mockito.BDDMockito.then;
class DefaultPropertiesPropertySourceTests { class DefaultPropertiesPropertySourceTests {
@Mock @Mock
@SuppressWarnings("NullAway.Init")
private Consumer<DefaultPropertiesPropertySource> action; private Consumer<DefaultPropertiesPropertySource> action;
@Test @Test
@@ -41,7 +41,6 @@ import static org.assertj.core.api.Assertions.assertThatIllegalArgumentException
class WritableJsonTests { class WritableJsonTests {
@TempDir @TempDir
@SuppressWarnings("NullAway.Init")
File temp; File temp;
@Test @Test
@@ -48,7 +48,6 @@ abstract class AbstractStructuredLoggingTests {
private static final JsonMapper JSON_MAPPER = new JsonMapper(); private static final JsonMapper JSON_MAPPER = new JsonMapper();
@Mock @Mock
@SuppressWarnings("NullAway.Init")
StructuredLoggingJsonMembersCustomizer<?> customizer; StructuredLoggingJsonMembersCustomizer<?> customizer;
MockStructuredLoggingJsonMembersCustomizerBuilder<?> customizerBuilder = new MockStructuredLoggingJsonMembersCustomizerBuilder<>( MockStructuredLoggingJsonMembersCustomizerBuilder<?> customizerBuilder = new MockStructuredLoggingJsonMembersCustomizerBuilder<>(
@@ -36,7 +36,6 @@ import static org.assertj.core.api.Assertions.assertThat;
class Log4j2FileXmlTests extends Log4j2XmlTests { class Log4j2FileXmlTests extends Log4j2XmlTests {
@TempDir @TempDir
@SuppressWarnings("NullAway.Init")
File temp; File temp;
@Override @Override
@@ -60,7 +60,6 @@ abstract class AbstractStructuredLoggingTests {
private BasicMarkerFactory markerFactory; private BasicMarkerFactory markerFactory;
@Mock @Mock
@SuppressWarnings("NullAway.Init")
StructuredLoggingJsonMembersCustomizer<?> customizer; StructuredLoggingJsonMembersCustomizer<?> customizer;
MockStructuredLoggingJsonMembersCustomizerBuilder<?> customizerBuilder = new MockStructuredLoggingJsonMembersCustomizerBuilder<>( MockStructuredLoggingJsonMembersCustomizerBuilder<?> customizerBuilder = new MockStructuredLoggingJsonMembersCustomizerBuilder<>(
@@ -43,7 +43,7 @@ import static org.mockito.BDDMockito.given;
class StructuredLoggingJsonPropertiesJsonMembersCustomizerTests { class StructuredLoggingJsonPropertiesJsonMembersCustomizerTests {
@Mock @Mock
@SuppressWarnings({ "rawtypes", "NullAway.Init" }) @SuppressWarnings("rawtypes")
private Instantiator instantiator; private Instantiator instantiator;
@Test @Test
@@ -40,7 +40,6 @@ import static org.assertj.core.api.Assertions.assertThat;
class ApplicationHomeTests { class ApplicationHomeTests {
@TempDir @TempDir
@SuppressWarnings("NullAway.Init")
File tempDir; File tempDir;
@Test @Test
@@ -40,7 +40,6 @@ import static org.assertj.core.api.Assertions.contentOf;
class ApplicationPidTests { class ApplicationPidTests {
@TempDir @TempDir
@SuppressWarnings("NullAway.Init")
File tempDir; File tempDir;
@Test @Test
@@ -61,11 +61,9 @@ import static org.mockito.Mockito.never;
abstract class AbstractFilterRegistrationBeanTests { abstract class AbstractFilterRegistrationBeanTests {
@Mock @Mock
@SuppressWarnings("NullAway.Init")
ServletContext servletContext; ServletContext servletContext;
@Mock @Mock
@SuppressWarnings("NullAway.Init")
FilterRegistration.Dynamic registration; FilterRegistration.Dynamic registration;
@Test @Test
@@ -56,7 +56,6 @@ class DelegatingFilterProxyRegistrationBeanTests extends AbstractFilterRegistrat
} }
@Test @Test
@SuppressWarnings("NullAway") // Test null check
void targetBeanNameMustNotBeEmpty() { void targetBeanNameMustNotBeEmpty() {
assertThatIllegalArgumentException().isThrownBy(() -> new DelegatingFilterProxyRegistrationBean("")) assertThatIllegalArgumentException().isThrownBy(() -> new DelegatingFilterProxyRegistrationBean(""))
.withMessageContaining("'targetBeanName' must not be empty"); .withMessageContaining("'targetBeanName' must not be empty");
@@ -39,11 +39,9 @@ import static org.mockito.Mockito.never;
class ServletListenerRegistrationBeanTests { class ServletListenerRegistrationBeanTests {
@Mock @Mock
@SuppressWarnings("NullAway.Init")
private ServletContextListener listener; private ServletContextListener listener;
@Mock @Mock
@SuppressWarnings("NullAway.Init")
private ServletContext servletContext; private ServletContext servletContext;
@Test @Test
@@ -52,11 +52,9 @@ class ServletRegistrationBeanTests {
private final MockServlet servlet = new MockServlet(); private final MockServlet servlet = new MockServlet();
@Mock @Mock
@SuppressWarnings("NullAway.Init")
private ServletContext servletContext; private ServletContext servletContext;
@Mock @Mock
@SuppressWarnings("NullAway.Init")
private ServletRegistration.Dynamic registration; private ServletRegistration.Dynamic registration;
@Test @Test
@@ -54,7 +54,6 @@ import static org.assertj.core.api.Assertions.assertThat;
abstract class AbstractJarModeTests { abstract class AbstractJarModeTests {
@TempDir @TempDir
@SuppressWarnings("NullAway.Init")
File tempDir; File tempDir;
Manifest createManifest(String... entries) { Manifest createManifest(String... entries) {
@@ -34,7 +34,6 @@ import static org.assertj.core.api.Assertions.assertThatIllegalStateException;
class ContextTests { class ContextTests {
@TempDir @TempDir
@SuppressWarnings("NullAway.Init")
File temp; File temp;
@Test @Test
@@ -69,11 +69,9 @@ class ExtractLayersCommandTests {
private static final FileTime LAST_ACCESS_TIME = FileTime.from(NOW.minus(1, ChronoUnit.DAYS)); private static final FileTime LAST_ACCESS_TIME = FileTime.from(NOW.minus(1, ChronoUnit.DAYS));
@TempDir @TempDir
@SuppressWarnings("NullAway.Init")
File temp; File temp;
@Mock @Mock
@SuppressWarnings("NullAway.Init")
private Context context; private Context context;
private File jarFile; private File jarFile;
@@ -40,7 +40,6 @@ class HelpCommandTests {
private TestPrintStream out; private TestPrintStream out;
@TempDir @TempDir
@SuppressWarnings("NullAway.Init")
Path temp; Path temp;
@BeforeEach @BeforeEach
@@ -42,7 +42,6 @@ import static org.mockito.Mockito.mock;
class IndexedLayersTests { class IndexedLayersTests {
@TempDir @TempDir
@SuppressWarnings("NullAway.Init")
File temp; File temp;
@Test @Test
@@ -48,11 +48,9 @@ import static org.mockito.BDDMockito.given;
class ListCommandTests { class ListCommandTests {
@TempDir @TempDir
@SuppressWarnings("NullAway.Init")
File temp; File temp;
@Mock @Mock
@SuppressWarnings("NullAway.Init")
private Context context; private Context context;
private ListCommand command; private ListCommand command;
@@ -89,7 +89,6 @@ abstract class AbstractPackagerTests<P extends Packager> {
} }
@TempDir @TempDir
@SuppressWarnings("NullAway.Init")
File tempDir; File tempDir;
protected TestJarFile testJarFile; protected TestJarFile testJarFile;
@@ -39,7 +39,6 @@ import static org.assertj.core.api.Assertions.assertThat;
class FileUtilsTests { class FileUtilsTests {
@TempDir @TempDir
@SuppressWarnings("NullAway.Init")
File tempDir; File tempDir;
private File outputDirectory; private File outputDirectory;
@@ -342,8 +342,7 @@ public abstract class EndpointDiscoverer<E extends ExposableEndpoint<O>, O exten
return isFilterMatch(filter, getFilterEndpoint(endpointBean)); return isFilterMatch(filter, getFilterEndpoint(endpointBean));
} }
// Doesn't detect lambda with correct nullability @SuppressWarnings("unchecked")
@SuppressWarnings({ "unchecked", "NullAway" })
private boolean isFilterMatch(EndpointFilter<E> filter, E endpoint) { private boolean isFilterMatch(EndpointFilter<E> filter, E endpoint) {
Boolean result = LambdaSafe.callback(EndpointFilter.class, filter, endpoint) Boolean result = LambdaSafe.callback(EndpointFilter.class, filter, endpoint)
.withLogger(EndpointDiscoverer.class) .withLogger(EndpointDiscoverer.class)
@@ -362,8 +361,7 @@ public abstract class EndpointDiscoverer<E extends ExposableEndpoint<O>, O exten
return false; return false;
} }
// Doesn't detect lambda with correct nullability @SuppressWarnings("unchecked")
@SuppressWarnings({ "unchecked", "NullAway" })
private boolean isFilterMatch(OperationFilter<O> filter, Operation operation, EndpointId endpointId, private boolean isFilterMatch(OperationFilter<O> filter, Operation operation, EndpointId endpointId,
Access defaultAccess) { Access defaultAccess) {
Boolean result = LambdaSafe.callback(OperationFilter.class, filter, operation) Boolean result = LambdaSafe.callback(OperationFilter.class, filter, operation)
@@ -42,7 +42,6 @@ class EndpointIdTests {
} }
@Test @Test
@SuppressWarnings("NullAway") // Test null check
void ofWhenEmptyThrowsException() { void ofWhenEmptyThrowsException() {
assertThatIllegalArgumentException().isThrownBy(() -> EndpointId.of("")) assertThatIllegalArgumentException().isThrownBy(() -> EndpointId.of(""))
.withMessage("'value' must not be empty"); .withMessage("'value' must not be empty");
@@ -51,11 +51,9 @@ import static org.mockito.BDDMockito.then;
class CachingOperationInvokerAdvisorTests { class CachingOperationInvokerAdvisorTests {
@Mock @Mock
@SuppressWarnings("NullAway.Init")
private OperationInvoker invoker; private OperationInvoker invoker;
@Mock @Mock
@SuppressWarnings("NullAway.Init")
private Function<EndpointId, @Nullable Long> timeToLive; private Function<EndpointId, @Nullable Long> timeToLive;
private CachingOperationInvokerAdvisor advisor; private CachingOperationInvokerAdvisor advisor;
@@ -59,11 +59,9 @@ class JmxEndpointExporterTests {
private final List<ExposableJmxEndpoint> endpoints = new ArrayList<>(); private final List<ExposableJmxEndpoint> endpoints = new ArrayList<>();
@Mock @Mock
@SuppressWarnings("NullAway.Init")
private MBeanServer mBeanServer; private MBeanServer mBeanServer;
@Spy @Spy
@SuppressWarnings("NullAway.Init")
private EndpointObjectNameFactory objectNameFactory = new TestEndpointObjectNameFactory(); private EndpointObjectNameFactory objectNameFactory = new TestEndpointObjectNameFactory();
private JmxEndpointExporter exporter; private JmxEndpointExporter exporter;
@@ -58,15 +58,12 @@ import static org.mockito.Mockito.mock;
class ServletEndpointRegistrarTests { class ServletEndpointRegistrarTests {
@Mock @Mock
@SuppressWarnings("NullAway.Init")
private ServletContext servletContext; private ServletContext servletContext;
@Mock @Mock
@SuppressWarnings("NullAway.Init")
private ServletRegistration.Dynamic servletDynamic; private ServletRegistration.Dynamic servletDynamic;
@Mock @Mock
@SuppressWarnings("NullAway.Init")
private FilterRegistration.Dynamic filterDynamic; private FilterRegistration.Dynamic filterDynamic;
@Test @Test
@@ -45,11 +45,9 @@ import static org.mockito.Mockito.mock;
class RabbitHealthIndicatorTests { class RabbitHealthIndicatorTests {
@Mock @Mock
@SuppressWarnings("NullAway.Init")
private RabbitTemplate rabbitTemplate; private RabbitTemplate rabbitTemplate;
@Mock @Mock
@SuppressWarnings("NullAway.Init")
private Channel channel; private Channel channel;
@Test @Test
@@ -69,8 +69,7 @@ public class CacheMetricsRegistrar {
return false; return false;
} }
// Lambda isn't detected with the correct nullability @SuppressWarnings("unchecked")
@SuppressWarnings({ "unchecked", "NullAway" })
private @Nullable MeterBinder getMeterBinder(Cache cache, Tags tags) { private @Nullable MeterBinder getMeterBinder(Cache cache, Tags tags) {
Tags cacheTags = tags.and(getAdditionalTags(cache)); Tags cacheTags = tags.and(getAdditionalTags(cache));
return LambdaSafe.callbacks(CacheMeterBinderProvider.class, this.binderProviders, cache) return LambdaSafe.callbacks(CacheMeterBinderProvider.class, this.binderProviders, cache)
@@ -42,7 +42,6 @@ import static org.mockito.Mockito.mock;
class JCacheCacheMeterBinderProviderTests { class JCacheCacheMeterBinderProviderTests {
@Mock @Mock
@SuppressWarnings("NullAway.Init")
private javax.cache.Cache<Object, Object> nativeCache; private javax.cache.Cache<Object, Object> nativeCache;
@Test @Test
@@ -48,11 +48,9 @@ import static org.mockito.BDDMockito.given;
class SecurityInterceptorTests { class SecurityInterceptorTests {
@Mock @Mock
@SuppressWarnings("NullAway.Init")
private TokenValidator tokenValidator; private TokenValidator tokenValidator;
@Mock @Mock
@SuppressWarnings("NullAway.Init")
private SecurityService securityService; private SecurityService securityService;
private SecurityInterceptor interceptor; private SecurityInterceptor interceptor;
@@ -60,7 +60,6 @@ class TokenValidatorTests {
private static final byte[] DOT = ".".getBytes(); private static final byte[] DOT = ".".getBytes();
@Mock @Mock
@SuppressWarnings("NullAway.Init")
private SecurityService securityService; private SecurityService securityService;
private TokenValidator tokenValidator; private TokenValidator tokenValidator;
@@ -46,11 +46,9 @@ import static org.mockito.BDDMockito.then;
class SecurityInterceptorTests { class SecurityInterceptorTests {
@Mock @Mock
@SuppressWarnings("NullAway.Init")
private TokenValidator tokenValidator; private TokenValidator tokenValidator;
@Mock @Mock
@SuppressWarnings("NullAway.Init")
private SecurityService securityService; private SecurityService securityService;
private SecurityInterceptor interceptor; private SecurityInterceptor interceptor;
@@ -59,7 +59,6 @@ class TokenValidatorTests {
private static final byte[] DOT = ".".getBytes(); private static final byte[] DOT = ".".getBytes();
@Mock @Mock
@SuppressWarnings("NullAway.Init")
private SecurityService securityService; private SecurityService securityService;
private TokenValidator tokenValidator; private TokenValidator tokenValidator;
@@ -31,12 +31,10 @@ public class Country implements Serializable {
@Id @Id
@GeneratedValue @GeneratedValue
@SuppressWarnings("NullAway.Init")
private Long id; private Long id;
@Audited @Audited
@Column @Column
@SuppressWarnings("NullAway.Init")
private String name; private String name;
public Long getId() { public Long getId() {
@@ -52,7 +52,6 @@ abstract class AbstractDevToolsIntegrationTests {
protected final JvmLauncher javaLauncher = new JvmLauncher(); protected final JvmLauncher javaLauncher = new JvmLauncher();
@TempDir @TempDir
@SuppressWarnings("NullAway.Init")
protected static File temp; protected static File temp;
private @Nullable LaunchedApplication launchedApplication; private @Nullable LaunchedApplication launchedApplication;
@@ -32,7 +32,6 @@ import static org.assertj.core.api.Assertions.assertThatIllegalArgumentException
class TriggerFileFilterTests { class TriggerFileFilterTests {
@TempDir @TempDir
@SuppressWarnings("NullAway.Init")
File tempDir; File tempDir;
@Test @Test
@@ -47,15 +47,12 @@ import static org.mockito.Mockito.never;
class ClassPathFileChangeListenerTests { class ClassPathFileChangeListenerTests {
@Mock @Mock
@SuppressWarnings("NullAway.Init")
private ApplicationEventPublisher eventPublisher; private ApplicationEventPublisher eventPublisher;
@Mock @Mock
@SuppressWarnings("NullAway.Init")
private ClassPathRestartStrategy restartStrategy; private ClassPathRestartStrategy restartStrategy;
@Mock @Mock
@SuppressWarnings("NullAway.Init")
private FileSystemWatcher fileSystemWatcher; private FileSystemWatcher fileSystemWatcher;
@Test @Test
@@ -34,7 +34,6 @@ import static org.assertj.core.api.Assertions.assertThatIllegalArgumentException
class ChangedFileTests { class ChangedFileTests {
@TempDir @TempDir
@SuppressWarnings("NullAway.Init")
File tempDir; File tempDir;
@Test @Test
@@ -38,7 +38,6 @@ import static org.assertj.core.api.Assertions.assertThatIllegalArgumentException
class DirectorySnapshotTests { class DirectorySnapshotTests {
@TempDir @TempDir
@SuppressWarnings("NullAway.Init")
File tempDir; File tempDir;
private File directory; private File directory;
@@ -42,7 +42,6 @@ class FileSnapshotTests {
private static final long MODIFIED = new Date().getTime() - TimeUnit.DAYS.toMillis(10); private static final long MODIFIED = new Date().getTime() - TimeUnit.DAYS.toMillis(10);
@TempDir @TempDir
@SuppressWarnings("NullAway.Init")
File tempDir; File tempDir;
@Test @Test
@@ -54,7 +54,6 @@ class FileSystemWatcherTests {
private final List<Set<ChangedFiles>> changes = Collections.synchronizedList(new ArrayList<>()); private final List<Set<ChangedFiles>> changes = Collections.synchronizedList(new ArrayList<>());
@TempDir @TempDir
@SuppressWarnings("NullAway.Init")
File tempDir; File tempDir;
@BeforeEach @BeforeEach
@@ -49,27 +49,21 @@ class DelayedLiveReloadTriggerTests {
private static final String URL = "http://localhost:8080"; private static final String URL = "http://localhost:8080";
@Mock @Mock
@SuppressWarnings("NullAway.Init")
private OptionalLiveReloadServer liveReloadServer; private OptionalLiveReloadServer liveReloadServer;
@Mock @Mock
@SuppressWarnings("NullAway.Init")
private ClientHttpRequestFactory requestFactory; private ClientHttpRequestFactory requestFactory;
@Mock @Mock
@SuppressWarnings("NullAway.Init")
private ClientHttpRequest errorRequest; private ClientHttpRequest errorRequest;
@Mock @Mock
@SuppressWarnings("NullAway.Init")
private ClientHttpRequest okRequest; private ClientHttpRequest okRequest;
@Mock @Mock
@SuppressWarnings("NullAway.Init")
private ClientHttpResponse errorResponse; private ClientHttpResponse errorResponse;
@Mock @Mock
@SuppressWarnings("NullAway.Init")
private ClientHttpResponse okResponse; private ClientHttpResponse okResponse;
private DelayedLiveReloadTrigger trigger; private DelayedLiveReloadTrigger trigger;
@@ -54,11 +54,9 @@ class HttpHeaderInterceptorTests {
private byte[] body; private byte[] body;
@Mock @Mock
@SuppressWarnings("NullAway.Init")
private ClientHttpRequestExecution execution; private ClientHttpRequestExecution execution;
@Mock @Mock
@SuppressWarnings("NullAway.Init")
private ClientHttpResponse response; private ClientHttpResponse response;
private MockHttpServletRequest httpRequest; private MockHttpServletRequest httpRequest;
@@ -51,11 +51,9 @@ import static org.mockito.Mockito.mock;
class DispatcherFilterTests { class DispatcherFilterTests {
@Mock @Mock
@SuppressWarnings("NullAway.Init")
private Dispatcher dispatcher; private Dispatcher dispatcher;
@Mock @Mock
@SuppressWarnings("NullAway.Init")
private FilterChain chain; private FilterChain chain;
private DispatcherFilter filter; private DispatcherFilter filter;
@@ -52,7 +52,6 @@ import static org.mockito.Mockito.withSettings;
class DispatcherTests { class DispatcherTests {
@Mock @Mock
@SuppressWarnings("NullAway.Init")
private AccessManager accessManager; private AccessManager accessManager;
private final MockHttpServletResponse response = new MockHttpServletResponse(); private final MockHttpServletResponse response = new MockHttpServletResponse();
@@ -43,7 +43,6 @@ import static org.assertj.core.api.Assertions.assertThat;
class ChangeableUrlsTests { class ChangeableUrlsTests {
@TempDir @TempDir
@SuppressWarnings("NullAway.Init")
File tempDir; File tempDir;
@Test @Test
@@ -40,21 +40,18 @@ class ClassLoaderFileTests {
} }
@Test @Test
@SuppressWarnings("NullAway") // Test null check
void addedContentsMustNotBeNull() { void addedContentsMustNotBeNull() {
assertThatIllegalArgumentException().isThrownBy(() -> new ClassLoaderFile(Kind.ADDED, null)) assertThatIllegalArgumentException().isThrownBy(() -> new ClassLoaderFile(Kind.ADDED, null))
.withMessageContaining("'contents' must not be null"); .withMessageContaining("'contents' must not be null");
} }
@Test @Test
@SuppressWarnings("NullAway") // Test null check
void modifiedContentsMustNotBeNull() { void modifiedContentsMustNotBeNull() {
assertThatIllegalArgumentException().isThrownBy(() -> new ClassLoaderFile(Kind.MODIFIED, null)) assertThatIllegalArgumentException().isThrownBy(() -> new ClassLoaderFile(Kind.MODIFIED, null))
.withMessageContaining("'contents' must not be null"); .withMessageContaining("'contents' must not be null");
} }
@Test @Test
@SuppressWarnings("NullAway") // Test null check
void deletedContentsMustBeNull() { void deletedContentsMustBeNull() {
assertThatIllegalArgumentException().isThrownBy(() -> new ClassLoaderFile(Kind.DELETED, new byte[10])) assertThatIllegalArgumentException().isThrownBy(() -> new ClassLoaderFile(Kind.DELETED, new byte[10]))
.withMessageContaining("'contents' must be null"); .withMessageContaining("'contents' must be null");
@@ -52,7 +52,6 @@ import static org.mockito.BDDMockito.then;
class HttpRestartServerTests { class HttpRestartServerTests {
@Mock @Mock
@SuppressWarnings("NullAway.Init")
private RestartServer delegate; private RestartServer delegate;
private HttpRestartServer server; private HttpRestartServer server;
@@ -41,7 +41,6 @@ import static org.mockito.BDDMockito.given;
class AvailabilityStateHealthIndicatorTests { class AvailabilityStateHealthIndicatorTests {
@Mock @Mock
@SuppressWarnings("NullAway.Init")
private ApplicationAvailability applicationAvailability; private ApplicationAvailability applicationAvailability;
@Test @Test
@@ -46,7 +46,6 @@ class DiskSpaceHealthIndicatorTests {
private static final DataSize TOTAL_SPACE = DataSize.ofKilobytes(10); private static final DataSize TOTAL_SPACE = DataSize.ofKilobytes(10);
@Mock @Mock
@SuppressWarnings("NullAway.Init")
private File fileMock; private File fileMock;
private HealthIndicator healthIndicator; private HealthIndicator healthIndicator;
@@ -45,19 +45,15 @@ import static org.mockito.Mockito.mock;
class AutoConfiguredHealthEndpointGroupTests { class AutoConfiguredHealthEndpointGroupTests {
@Mock @Mock
@SuppressWarnings("NullAway.Init")
private StatusAggregator statusAggregator; private StatusAggregator statusAggregator;
@Mock @Mock
@SuppressWarnings("NullAway.Init")
private HttpCodeStatusMapper httpCodeStatusMapper; private HttpCodeStatusMapper httpCodeStatusMapper;
@Mock @Mock
@SuppressWarnings("NullAway.Init")
private SecurityContext securityContext; private SecurityContext securityContext;
@Mock @Mock
@SuppressWarnings("NullAway.Init")
private Principal principal; private Principal principal;
@Test @Test

Some files were not shown because too many files have changed in this diff Show More