Shut up deprecation warning

This commit is contained in:
Cynthia Foxwell 2024-03-17 10:11:43 -06:00
parent 04a8538752
commit e52928e2e7

View file

@ -37,7 +37,7 @@ public class ScoutMixin extends AutoMixin {
var params = decodeAnnotationParams(an);
Type type = (Type)params.get("value");
try {
transformers.put(name, (ClassNodeTransformer) Class.forName(type.getClassName()).newInstance());
transformers.put(name, (ClassNodeTransformer) Class.forName(type.getClassName()).getDeclaredConstructor().newInstance());
} catch (Exception e) {
LOGGER.error("Transformer class for mixin {} not found", name, e);
}