[
https://issues.redhat.com/browse/DROOLS-5940?page=com.atlassian.jira.plug...
]
Gabriele Cardosi updated DROOLS-5940:
-------------------------------------
Description:
org.drools.modelcompiler.builder.ModelSourceClass generate invalid java code when
{code:java}
modelsByKBase.values()
{code}
is an empty collection
e.g.
{code:java}
@Override
public java.util.List<Model> getModels() {
return java.util.Arrays.asList(new ());
}
{code}
See methods
{code:java}
addGetModelsMethod
{code}
{code:java}
addGetModelForKieBaseMethod
{code}
was:
org.drools.modelcompiler.builder.ModelSourceClass generate invalid java code when
`modelsByKBase.values()` is an empty collection
e.g.
{code:java}
@Override
public java.util.List<Model> getModels() {
return java.util.Arrays.asList(new ());
}
{code}
See methods
{code:java}
addGetModelsMethod
{code}
{code:java}
addGetModelForKieBaseMethod
{code}
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
Priority: Blocker
org.drools.modelcompiler.builder.ModelSourceClass generate invalid java code when
{code:java}
modelsByKBase.values()
{code}
is an empty collection
e.g.
{code:java}
@Override
public java.util.List<Model> getModels() {
return java.util.Arrays.asList(new ());
}
{code}
See methods
{code:java}
addGetModelsMethod
{code}
{code:java}
addGetModelForKieBaseMethod
{code}
--
This message was sent by Atlassian Jira
(v8.13.1#813001)