lucamolteni commented on code in PR #5836:
URL: 
https://github.com/apache/incubator-kie-drools/pull/5836#discussion_r1559511963


##########
drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/GenericsTest.java:
##########
@@ -40,20 +40,20 @@ public void testGenericsAccumulateInlineCode() {
         // accumulate inline code supports generics
         String str =
                 "import " + Person.class.getCanonicalName() + ";\n" +
-                "import " + Address.class.getCanonicalName() + ";\n" +
-                "import " + List.class.getCanonicalName() + ";\n" +
-                "import " + ArrayList.class.getCanonicalName() + ";\n" +
-                "global List results;\n" +
-                "dialect \"mvel\"\n" +
-                "rule R when\n" +
-                "  $l : List() from accumulate (Person($addrList : 
addresses),\n" +
-                "         init( List<String> cityList = new ArrayList(); ),\n" 
+
-                "         action( for(Address addr: $addrList){String city = 
addr.getCity(); cityList.add(city);} ),\n" +
-                "         result( cityList )\n" +
-                "       )\n" +
-                "then\n" +
-                "  results.add($l);\n" +
-                "end";
+                        "import " + Address.class.getCanonicalName() + ";\n" +

Review Comment:
   Wrong formatting



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to