This is an automated email from the ASF dual-hosted git repository.
sergeykamov pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nlpcraft.git
The following commit(s) were added to refs/heads/master by this push:
new 81058f6 Minor fixes.
81058f6 is described below
commit 81058f6e5c52cffa0f1130f3d5ef3b2cb54d7399
Author: Sergey Kamov <[email protected]>
AuthorDate: Tue Aug 10 23:19:14 2021 +0300
Minor fixes.
---
.../scala/org/apache/nlpcraft/probe/mgrs/deploy/NCDeployManager.scala | 4 ++--
1 file changed, 2 insertions(+), 2 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 e27eee6..8d89477 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
@@ -1663,13 +1663,13 @@ object NCDeployManager extends NCService {
}
// Process @NCModelAddClasses annotation.
- scanAdditionalClasses(CLS_MDL_CLS_REF, (a: NCModelAddClasses) =>
a.value())
+ scanAdditionalClasses(CLS_MDL_CLS_REF, (a: NCModelAddClasses) =>
a.value().toIndexedSeq)
// Process @NCModelAddPackages annotation.
scanAdditionalClasses(
CLS_MDL_PKGS_REF,
(a: NCModelAddPackage) =>
- a.value().flatMap(p => {
+ a.value().toIndexedSeq.flatMap(p => {
if (cl.getDefinedPackage(p) == null)
throw new NCE(
s"Invalid additional references in
@${CLS_MDL_PKGS_REF.getSimpleName} annotation [" +