Skip to content

Commit 3d2e73f

Browse files
Initialize model parameters in VelocityGenerator
What changed: - Added call to `initialize(model, parameters)` in the `generate` method. Why: - To ensure that the model is properly initialized with the provided parameters.
1 parent d3f3698 commit 3d2e73f

File tree

1 file changed

+1
-0
lines changed
  • modello-plugins/modello-plugin-velocity/src/main/java/org/codehaus/modello/plugin/velocity

1 file changed

+1
-0
lines changed

modello-plugins/modello-plugin-velocity/src/main/java/org/codehaus/modello/plugin/velocity/VelocityGenerator.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ public class VelocityGenerator extends AbstractModelloGenerator {
5454
@Override
5555
@SuppressWarnings("unchecked")
5656
public void generate(Model model, Map<String, Object> parameters) throws ModelloException {
57+
initialize(model, parameters);
5758
try {
5859
Map<String, String> params =
5960
(Map<String, String>) Objects.requireNonNull(parameters.get(VELOCITY_PARAMETERS));

0 commit comments

Comments
 (0)