mirror of
https://github.com/jlengrand/openapi-generator.git
synced 2026-03-10 08:31:23 +00:00
Fix javaJaxRS template: remove deprecated in JDK9 method usage (#18728)
* Fix javaJaxRS template: remove deprecated in JDK9 method usage * Fix javaJaxRS api template: regenerate samples
This commit is contained in:
committed by
GitHub
parent
728abafdfa
commit
0daf9ffa5b
@@ -47,7 +47,7 @@ public class {{classname}} {
|
||||
String implClass = servletContext.getInitParameter("{{classname}}.implementation");
|
||||
if (implClass != null && !"".equals(implClass.trim())) {
|
||||
try {
|
||||
delegate = ({{classname}}Service) Class.forName(implClass).newInstance();
|
||||
delegate = ({{classname}}Service) Class.forName(implClass).getDeclaredConstructor().newInstance();
|
||||
} catch (Exception e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user