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

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


The following commit(s) were added to refs/heads/NLPCRAFT-398 by this push:
     new 37ff328  WIP.
37ff328 is described below

commit 37ff3289c473fb0d6994eef82d85fff1a31da98d
Author: Sergey Kamov <[email protected]>
AuthorDate: Mon Aug 9 19:04:10 2021 +0300

    WIP.
---
 .../apache/nlpcraft/probe/mgrs/deploy/NCDeployManager.scala    | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git 
a/nlpcraft/src/main/scala/org/apache/nlpcraft/probe/mgrs/deploy/NCDeployManager.scala
 
b/nlpcraft/src/main/scala/org/apache/nlpcraft/probe/mgrs/deploy/NCDeployManager.scala
index efee3e0..114d4af 100644
--- 
a/nlpcraft/src/main/scala/org/apache/nlpcraft/probe/mgrs/deploy/NCDeployManager.scala
+++ 
b/nlpcraft/src/main/scala/org/apache/nlpcraft/probe/mgrs/deploy/NCDeployManager.scala
@@ -1549,7 +1549,7 @@ object NCDeployManager extends NCService {
         }
 
         def processClass(cls: Class[_]): Unit =
-            if (cls != null && !Modifier.isAbstract(cls.getModifiers))
+            if (cls != null)
                 try
                     for (
                         ann <- cls.getAnnotationsByType(CLS_INTENT);
@@ -1643,10 +1643,12 @@ object NCDeployManager extends NCService {
                         s"]"
                     )
 
-                refs.foreach(ref => {
+                for (ref <- refs if Modifier.isAbstract(ref.getModifiers)) {
                     processClass(ref)
-                    getAllMethods(ref).foreach(m => 
processMethod(MethodOwner(method = m, objClassName = ref.getName, obj = null)))
-                })
+
+                    for (m <- getAllMethods(ref))
+                        processMethod(MethodOwner(method = m, objClassName = 
ref.getName, obj = null))
+                }
             }
         }
 

Reply via email to