This is an automated email from the ASF dual-hosted git repository.

aradzinski pushed a commit to branch NLPCRAFT-206
in repository https://gitbox.apache.org/repos/asf/incubator-nlpcraft.git


The following commit(s) were added to refs/heads/NLPCRAFT-206 by this push:
     new 3cefa03  Update NCDslCompilerBase.scala
3cefa03 is described below

commit 3cefa032bbe2ecbd2b6c8e21ab325564bc735b9b
Author: Aaron Radzinski <[email protected]>
AuthorDate: Tue Mar 16 10:54:32 2021 -0700

    Update NCDslCompilerBase.scala
---
 .../org/apache/nlpcraft/model/intent/compiler/NCDslCompilerBase.scala  | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 
a/nlpcraft/src/main/scala/org/apache/nlpcraft/model/intent/compiler/NCDslCompilerBase.scala
 
b/nlpcraft/src/main/scala/org/apache/nlpcraft/model/intent/compiler/NCDslCompilerBase.scala
index 512c253..f9cdadb 100644
--- 
a/nlpcraft/src/main/scala/org/apache/nlpcraft/model/intent/compiler/NCDslCompilerBase.scala
+++ 
b/nlpcraft/src/main/scala/org/apache/nlpcraft/model/intent/compiler/NCDslCompilerBase.scala
@@ -22,6 +22,7 @@ import org.apache.nlpcraft.common.{NCE, U}
 import org.apache.nlpcraft.model.NCToken
 import org.antlr.v4.runtime.{ParserRuleContext ⇒ PRC}
 import org.antlr.v4.runtime.tree.{TerminalNode ⇒ TN}
+import org.apache.commons.collections.CollectionUtils
 import org.apache.nlpcraft.model.intent.NCDslContext
 import org.apache.nlpcraft.model.intent.compiler.{NCDslStackItem ⇒ Z}
 
@@ -319,7 +320,7 @@ trait NCDslCompilerBase {
             else if (isJDouble(v1) && isJDouble(v2)) asJDouble(v1) == 
asJDouble(v2)
             else if (isBool(v1) && isBool(v2)) asBool(v1) == asBool(v2)
             else if (isStr(v1) && isStr(v2)) asStr(v1) == asStr(v2)
-            else if (isJList(v1) && isJList(v2)) 
asJList(v1).equals(asJList(v2))
+            else if (isJList(v1) && isJList(v2)) 
CollectionUtils.isEqualCollection(asJList(v1), asJList(v2))
             else {
                 throw rtBinaryOpError(op, v1, v2)
             }}

Reply via email to