mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-17 12:09:16 +00:00
Merge branch '4.0.x' into 4.1.x
Closes gh-51087
This commit is contained in:
+1
-1
@@ -164,7 +164,7 @@ class TestcontainersLifecycleOrderWithScopeIntegrationTests {
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object remove(String name) {
|
||||
public @Nullable Object remove(String name) {
|
||||
synchronized (this) {
|
||||
Object removed = this.instances.remove(name);
|
||||
List<Runnable> destructor = this.destructors.get(name);
|
||||
|
||||
+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);
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -68,7 +68,7 @@ public class WebDriverScope implements Scope {
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object remove(String name) {
|
||||
public @Nullable Object remove(String name) {
|
||||
synchronized (this.instances) {
|
||||
return this.instances.remove(name);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user