Avoid deprecated method

This commit is contained in:
jamesagnew 2020-12-18 08:49:09 -05:00
parent 5dc12b8787
commit c745fb2561
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}