File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed
spring-beans/src/main/java/org/springframework/beans Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -88,9 +88,9 @@ else if (methodName.startsWith("is") && method.getParameterCount() == 0 && metho
88
88
BasicPropertyDescriptor pd = pdMap .get (propertyName );
89
89
if (pd != null ) {
90
90
if (setter ) {
91
- Method writedMethod = pd .getWriteMethod ();
92
- if (writedMethod == null ||
93
- writedMethod .getParameterTypes ()[0 ].isAssignableFrom (method .getParameterTypes ()[0 ])) {
91
+ Method writeMethod = pd .getWriteMethod ();
92
+ if (writeMethod == null ||
93
+ writeMethod .getParameterTypes ()[0 ].isAssignableFrom (method .getParameterTypes ()[0 ])) {
94
94
pd .setWriteMethod (method );
95
95
}
96
96
else {
Original file line number Diff line number Diff line change @@ -853,10 +853,12 @@ public void setConstructorArgumentValues(ConstructorArgumentValues constructorAr
853
853
*/
854
854
@ Override
855
855
public ConstructorArgumentValues getConstructorArgumentValues () {
856
- if (this .constructorArgumentValues == null ) {
857
- this .constructorArgumentValues = new ConstructorArgumentValues ();
856
+ ConstructorArgumentValues cav = this .constructorArgumentValues ;
857
+ if (cav == null ) {
858
+ cav = new ConstructorArgumentValues ();
859
+ this .constructorArgumentValues = cav ;
858
860
}
859
- return this . constructorArgumentValues ;
861
+ return cav ;
860
862
}
861
863
862
864
/**
You can’t perform that action at this time.
0 commit comments