Gabriele Cardosi created DROOLS-5940:
----------------------------------------
Summary: Fix Project Model code generation
Key: DROOLS-5940
URL:
https://issues.redhat.com/browse/DROOLS-5940
Project: Drools
Issue Type: Bug
Reporter: Gabriele Cardosi
Assignee: Gabriele Cardosi
org.drools.modelcompiler.builder.ModelSourceClass generate invalid java code when
`modelsByKBase.values()` is an empty collection
e.g.
`
@Override
public java.util.List<Model> getModels() {
return java.util.Arrays.asList(new ());
}
`
See methods
`addGetModelsMethod`
`addGetModelForKieBaseMethod`
--
This message was sent by Atlassian Jira
(v8.13.1#813001)