This is an automated email from the ASF dual-hosted git repository.
fjtiradosarti pushed a commit to branch main
in repository
https://gitbox.apache.org/repos/asf/incubator-kie-kogito-runtimes.git
The following commit(s) were added to refs/heads/main by this push:
new 626bbed461 [Fix #1505] Avoid many instances of
DefaultNodeInstanceFactory (#3689)
626bbed461 is described below
commit 626bbed46168d6129a24786178323eb21620b462
Author: Francisco Javier Tirado Sarti
<[email protected]>
AuthorDate: Tue Oct 8 11:56:42 2024 +0200
[Fix #1505] Avoid many instances of DefaultNodeInstanceFactory (#3689)
---
.../instance/impl/CodegenNodeInstanceFactoryRegistry.java | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git
a/jbpm/jbpm-flow/src/main/java/org/jbpm/workflow/instance/impl/CodegenNodeInstanceFactoryRegistry.java
b/jbpm/jbpm-flow/src/main/java/org/jbpm/workflow/instance/impl/CodegenNodeInstanceFactoryRegistry.java
index e7c89eda05..a3dd4f5f39 100644
---
a/jbpm/jbpm-flow/src/main/java/org/jbpm/workflow/instance/impl/CodegenNodeInstanceFactoryRegistry.java
+++
b/jbpm/jbpm-flow/src/main/java/org/jbpm/workflow/instance/impl/CodegenNodeInstanceFactoryRegistry.java
@@ -24,11 +24,7 @@ import
org.jbpm.workflow.instance.node.LambdaSubProcessNodeInstance;
public class CodegenNodeInstanceFactoryRegistry extends
NodeInstanceFactoryRegistry {
- @Override
- protected NodeInstanceFactory get(Class<?> clazz) {
- if (SubProcessNode.class == clazz) {
- return new DefaultNodeInstanceFactory(SubProcessNode.class,
LambdaSubProcessNodeInstance::new);
- }
- return super.get(clazz);
+ public CodegenNodeInstanceFactoryRegistry() {
+ register(SubProcessNode.class, new
DefaultNodeInstanceFactory(SubProcessNode.class,
LambdaSubProcessNodeInstance::new));
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]