Skip to content

Commit baeac9e

Browse files
committed
Polishing
1 parent bac05f5 commit baeac9e

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

org.springframework.beans/src/main/java/org/springframework/beans/factory/support/DefaultSingletonBeanRegistry.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2010 the original author or authors.
2+
* Copyright 2002-2012 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -303,7 +303,7 @@ protected void beforeSingletonCreation(String beanName) {
303303

304304
/**
305305
* Callback after singleton creation.
306-
* <p>Default implementation marks the singleton as not in creation anymore.
306+
* <p>The default implementation marks the singleton as not in creation anymore.
307307
* @param beanName the name of the singleton that has been created
308308
* @see #isSingletonCurrentlyInCreation
309309
*/
@@ -316,7 +316,8 @@ protected void afterSingletonCreation(String beanName) {
316316
public final void setCurrentlyInCreation(String beanName, boolean inCreation) {
317317
if (!inCreation) {
318318
this.inCreationCheckExclusions.add(beanName);
319-
} else {
319+
}
320+
else {
320321
this.inCreationCheckExclusions.remove(beanName);
321322
}
322323
}
@@ -333,7 +334,7 @@ public final boolean isSingletonCurrentlyInCreation(String beanName) {
333334

334335
/**
335336
* Add the given bean to the list of disposable beans in this registry.
336-
* Disposable beans usually correspond to registered singletons,
337+
* <p>Disposable beans usually correspond to registered singletons,
337338
* matching the bean name but potentially being a different instance
338339
* (for example, a DisposableBean adapter for a singleton that does not
339340
* naturally implement Spring's DisposableBean interface).

0 commit comments

Comments
 (0)