Shut up deprecation warning
This commit is contained in:
parent
04a8538752
commit
e52928e2e7
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ public class ScoutMixin extends AutoMixin {
|
||||||
var params = decodeAnnotationParams(an);
|
var params = decodeAnnotationParams(an);
|
||||||
Type type = (Type)params.get("value");
|
Type type = (Type)params.get("value");
|
||||||
try {
|
try {
|
||||||
transformers.put(name, (ClassNodeTransformer) Class.forName(type.getClassName()).newInstance());
|
transformers.put(name, (ClassNodeTransformer) Class.forName(type.getClassName()).getDeclaredConstructor().newInstance());
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
LOGGER.error("Transformer class for mixin {} not found", name, e);
|
LOGGER.error("Transformer class for mixin {} not found", name, e);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue