Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
XWiki
xwiki-rendering
Commits
ad08d973
Commit
ad08d973
authored
Apr 07, 2022
by
Vincent Massol
Browse files
[Misc] Remove deprecated call
parent
37a23018
Changes
1
Hide whitespace changes
Inline
Side-by-side
xwiki-rendering-transformations/xwiki-rendering-transformation-macro/src/main/java/org/xwiki/rendering/internal/transformation/macro/MacroTransformation.java
View file @
ad08d973
...
...
@@ -292,7 +292,8 @@ public void transform(Block rootBlock, TransformationContext context) throws Tra
((
MutableRenderingContext
)
this
.
renderingContext
).
setCurrentBlock
(
macroBlock
);
// Populate and validate macro parameters.
Object
macroParameters
=
macro
.
getDescriptor
().
getParametersBeanClass
().
newInstance
();
Object
macroParameters
=
macro
.
getDescriptor
().
getParametersBeanClass
().
getDeclaredConstructor
().
newInstance
();
try
{
this
.
beanManager
.
populate
(
macroParameters
,
macroBlock
.
getParameters
());
}
catch
(
Throwable
e
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment