Avoid deprecated method
This commit is contained in:
parent
5dc12b8787
commit
c745fb2561
|
@ -58,7 +58,7 @@ public class RuntimeResourceDefinition extends BaseRuntimeElementCompositeDefini
|
|||
|
||||
IBaseResource instance;
|
||||
try {
|
||||
instance = theClass.newInstance();
|
||||
instance = theClass.getConstructor().newInstance();
|
||||
} catch (Exception e) {
|
||||
throw new ConfigurationException(myContext.getLocalizer().getMessage(getClass(), "nonInstantiableType", theClass.getName(), e.toString()), e);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue