Polishing
This commit is contained in:
parent
a0358a4650
commit
19384ac8ad
|
|
@ -88,9 +88,9 @@ abstract class PropertyDescriptorUtils {
|
|||
BasicPropertyDescriptor pd = pdMap.get(propertyName);
|
||||
if (pd != null) {
|
||||
if (setter) {
|
||||
Method writedMethod = pd.getWriteMethod();
|
||||
if (writedMethod == null ||
|
||||
writedMethod.getParameterTypes()[0].isAssignableFrom(method.getParameterTypes()[0])) {
|
||||
Method writeMethod = pd.getWriteMethod();
|
||||
if (writeMethod == null ||
|
||||
writeMethod.getParameterTypes()[0].isAssignableFrom(method.getParameterTypes()[0])) {
|
||||
pd.setWriteMethod(method);
|
||||
}
|
||||
else {
|
||||
|
|
|
|||
|
|
@ -853,10 +853,12 @@ public abstract class AbstractBeanDefinition extends BeanMetadataAttributeAccess
|
|||
*/
|
||||
@Override
|
||||
public ConstructorArgumentValues getConstructorArgumentValues() {
|
||||
if (this.constructorArgumentValues == null) {
|
||||
this.constructorArgumentValues = new ConstructorArgumentValues();
|
||||
ConstructorArgumentValues cav = this.constructorArgumentValues;
|
||||
if (cav == null) {
|
||||
cav = new ConstructorArgumentValues();
|
||||
this.constructorArgumentValues = cav;
|
||||
}
|
||||
return this.constructorArgumentValues;
|
||||
return cav;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue