File tree 2 files changed +5
-5
lines changed
spring-beans/src/main/java/org/springframework/beans/factory/support
spring-core/src/main/java/org/springframework/core
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2024 the original author or authors.
2
+ * Copyright 2002-2025 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -178,13 +178,13 @@ public Object getSingleton(String beanName) {
178
178
*/
179
179
@ Nullable
180
180
protected Object getSingleton (String beanName , boolean allowEarlyReference ) {
181
- // Quick check for existing instance without full singleton lock
181
+ // Quick check for existing instance without full singleton lock.
182
182
Object singletonObject = this .singletonObjects .get (beanName );
183
183
if (singletonObject == null && isSingletonCurrentlyInCreation (beanName )) {
184
184
singletonObject = this .earlySingletonObjects .get (beanName );
185
185
if (singletonObject == null && allowEarlyReference ) {
186
186
synchronized (this .singletonObjects ) {
187
- // Consistent creation of early reference within full singleton lock
187
+ // Consistent creation of early reference within full singleton lock.
188
188
singletonObject = this .singletonObjects .get (beanName );
189
189
if (singletonObject == null ) {
190
190
singletonObject = this .earlySingletonObjects .get (beanName );
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2023 the original author or authors.
2
+ * Copyright 2002-2025 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -117,7 +117,7 @@ public static String getProperty(String key) {
117
117
* @param key the property key
118
118
*/
119
119
public static void setFlag (String key ) {
120
- localProperties .put (key , Boolean .TRUE .toString ());
120
+ localProperties .setProperty (key , Boolean .TRUE .toString ());
121
121
}
122
122
123
123
/**
You can’t perform that action at this time.
0 commit comments