Skip to content

Commit 520ef9e

Browse files
committed
Polishing
Issue: SPR-11422
1 parent 603cdea commit 520ef9e

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

spring-beans/src/main/java/org/springframework/beans/factory/support/AbstractAutowireCapableBeanFactory.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2013 the original author or authors.
2+
* Copyright 2002-2014 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.
@@ -1412,7 +1412,7 @@ protected void applyPropertyValues(String beanName, BeanDefinition mbd, BeanWrap
14121412
MutablePropertyValues mpvs = null;
14131413
List<PropertyValue> original;
14141414

1415-
if (System.getSecurityManager()!= null) {
1415+
if (System.getSecurityManager() != null) {
14161416
if (bw instanceof BeanWrapperImpl) {
14171417
((BeanWrapperImpl) bw).setSecurityContext(getAccessControlContext());
14181418
}
@@ -1709,7 +1709,7 @@ protected void removeSingleton(String beanName) {
17091709

17101710

17111711
/**
1712-
* Special DependencyDescriptor variant for autowire="byType".
1712+
* Special DependencyDescriptor variant for Spring's good old autowire="byType" mode.
17131713
* Always optional; never considering the parameter name for choosing a primary candidate.
17141714
*/
17151715
@SuppressWarnings("serial")

spring-beans/src/main/java/org/springframework/beans/factory/support/AbstractBeanDefinition.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2013 the original author or authors.
2+
* Copyright 2002-2014 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.
@@ -645,6 +645,7 @@ public void copyQualifiersFrom(AbstractBeanDefinition source) {
645645
/**
646646
* Specify whether to allow access to non-public constructors and methods,
647647
* for the case of externalized metadata pointing to those.
648+
* The default is {@code true}; switch this to {@false} for public access only.
648649
* <p>This applies to constructor resolution, factory method resolution,
649650
* and also init/destroy methods. Bean property accessors have to be public
650651
* in any case and are not affected by this setting.
@@ -666,7 +667,7 @@ public boolean isNonPublicAccessAllowed() {
666667
/**
667668
* Specify whether to resolve constructors in lenient mode ({@code true},
668669
* which is the default) or to switch to strict resolution (throwing an exception
669-
* in case of ambigious constructors that all match when converting the arguments,
670+
* in case of ambiguous constructors that all match when converting the arguments,
670671
* whereas lenient mode would use the one with the 'closest' type matches).
671672
*/
672673
public void setLenientConstructorResolution(boolean lenientConstructorResolution) {

0 commit comments

Comments
 (0)