mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-17 12:09:16 +00:00
Adapt to improvements in Nullaway 0.13.8
This commit adapts @Nullable when calling Map#remove as it correctly handles nullability. See gh-50972 Signed-off-by: Manu Sridharan <msridhar@gmail.com>
This commit is contained in:
committed by
Stéphane Nicoll
parent
b5fd50f295
commit
428806d71f
+1
-1
@@ -47,7 +47,7 @@ public class RestartScopeInitializer implements ApplicationContextInitializer<Co
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object remove(String name) {
|
||||
public @Nullable Object remove(String name) {
|
||||
return Restarter.getInstance().removeAttribute(name);
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -450,7 +450,7 @@ public class Restarter {
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object removeAttribute(String name) {
|
||||
public @Nullable Object removeAttribute(String name) {
|
||||
return this.attributes.remove(name);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user