Commit ad08d973 authored by Vincent Massol's avatar Vincent Massol
Browse files

[Misc] Remove deprecated call

parent 37a23018
...@@ -292,7 +292,8 @@ public void transform(Block rootBlock, TransformationContext context) throws Tra ...@@ -292,7 +292,8 @@ public void transform(Block rootBlock, TransformationContext context) throws Tra
((MutableRenderingContext) this.renderingContext).setCurrentBlock(macroBlock); ((MutableRenderingContext) this.renderingContext).setCurrentBlock(macroBlock);
// Populate and validate macro parameters. // Populate and validate macro parameters.
Object macroParameters = macro.getDescriptor().getParametersBeanClass().newInstance(); Object macroParameters =
macro.getDescriptor().getParametersBeanClass().getDeclaredConstructor().newInstance();
try { try {
this.beanManager.populate(macroParameters, macroBlock.getParameters()); this.beanManager.populate(macroParameters, macroBlock.getParameters());
} catch (Throwable e) { } catch (Throwable e) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment