|
|
|
@ -1,5 +1,5 @@ |
|
|
|
/* |
|
|
|
/* |
|
|
|
* Copyright 2002-2018 the original author or authors. |
|
|
|
* Copyright 2002-2019 the original author or authors. |
|
|
|
* |
|
|
|
* |
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
|
|
* you may not use this file except in compliance with the License. |
|
|
|
* you may not use this file except in compliance with the License. |
|
|
|
@ -173,7 +173,6 @@ class GroovyBeanDefinitionWrapper extends GroovyObjectSupport { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
@SuppressWarnings("rawtypes") |
|
|
|
|
|
|
|
public void setProperty(String property, Object newValue) { |
|
|
|
public void setProperty(String property, Object newValue) { |
|
|
|
if (PARENT.equals(property)) { |
|
|
|
if (PARENT.equals(property)) { |
|
|
|
setParent(newValue); |
|
|
|
setParent(newValue); |
|
|
|
@ -197,7 +196,7 @@ class GroovyBeanDefinitionWrapper extends GroovyObjectSupport { |
|
|
|
// constructorArgs
|
|
|
|
// constructorArgs
|
|
|
|
else if (CONSTRUCTOR_ARGS.equals(property) && newValue instanceof List) { |
|
|
|
else if (CONSTRUCTOR_ARGS.equals(property) && newValue instanceof List) { |
|
|
|
ConstructorArgumentValues cav = new ConstructorArgumentValues(); |
|
|
|
ConstructorArgumentValues cav = new ConstructorArgumentValues(); |
|
|
|
List args = (List) newValue; |
|
|
|
List<?> args = (List<?>) newValue; |
|
|
|
for (Object arg : args) { |
|
|
|
for (Object arg : args) { |
|
|
|
cav.addGenericArgumentValue(arg); |
|
|
|
cav.addGenericArgumentValue(arg); |
|
|
|
} |
|
|
|
} |
|
|
|
|