mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-26 08:59:09 +00:00
Avoid "NullAway.Init" suppression in favor of explicit field handling
Closes gh-36961
This commit is contained in:
Vendored
+4
-8
@@ -50,17 +50,13 @@ public abstract class AbstractCachingConfiguration implements ImportAware {
|
||||
|
||||
protected @Nullable AnnotationAttributes enableCaching;
|
||||
|
||||
@SuppressWarnings("NullAway.Init")
|
||||
protected Supplier<@Nullable CacheManager> cacheManager;
|
||||
protected @Nullable Supplier<@Nullable CacheManager> cacheManager;
|
||||
|
||||
@SuppressWarnings("NullAway.Init")
|
||||
protected Supplier<@Nullable CacheResolver> cacheResolver;
|
||||
protected @Nullable Supplier<@Nullable CacheResolver> cacheResolver;
|
||||
|
||||
@SuppressWarnings("NullAway.Init")
|
||||
protected Supplier<@Nullable KeyGenerator> keyGenerator;
|
||||
protected @Nullable Supplier<@Nullable KeyGenerator> keyGenerator;
|
||||
|
||||
@SuppressWarnings("NullAway.Init")
|
||||
protected Supplier<@Nullable CacheErrorHandler> errorHandler;
|
||||
protected @Nullable Supplier<@Nullable CacheErrorHandler> errorHandler;
|
||||
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user