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

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


The following commit(s) were added to refs/heads/scala-2.13 by this push:
     new e3d7464  WIP.
e3d7464 is described below

commit e3d7464eaff52374e0db668d21997e3ea7dfa3aa
Author: unknown <[email protected]>
AuthorDate: Tue May 18 14:49:21 2021 -0700

    WIP.
---
 .../nlpcraft/server/nlp/enrichers/stopword/NCStopWordGenerator.scala | 4 ++--
 .../main/scala/org/apache/nlpcraft/server/rest/NCBasicRestApi.scala  | 2 +-
 .../main/scala/org/apache/nlpcraft/server/user/NCUserManager.scala   | 5 ++---
 3 files changed, 5 insertions(+), 6 deletions(-)

diff --git 
a/nlpcraft/src/main/scala/org/apache/nlpcraft/server/nlp/enrichers/stopword/NCStopWordGenerator.scala
 
b/nlpcraft/src/main/scala/org/apache/nlpcraft/server/nlp/enrichers/stopword/NCStopWordGenerator.scala
index 57aa73e..c9fed22 100644
--- 
a/nlpcraft/src/main/scala/org/apache/nlpcraft/server/nlp/enrichers/stopword/NCStopWordGenerator.scala
+++ 
b/nlpcraft/src/main/scala/org/apache/nlpcraft/server/nlp/enrichers/stopword/NCStopWordGenerator.scala
@@ -194,7 +194,7 @@ object NCStopWordGenerator extends App {
         NCUtils.gzipPath(p)
     }
 
-    private[stopword] def mkNounWords() {
+    private[stopword] def mkNounWords(): Unit = {
         val buf = new scala.collection.mutable.ArrayBuffer[String]()
 
         for (w1 <- NOUN_WORDS)
@@ -211,7 +211,7 @@ object NCStopWordGenerator extends App {
 
     private def stem(seq: Seq[String]): Seq[String] = seq.map(stem)
 
-    private[stopword] def mkFirstWords() {
+    private[stopword] def mkFirstWords(): Unit = {
         val buf = new scala.collection.mutable.ArrayBuffer[String]()
 
         // is there
diff --git 
a/nlpcraft/src/main/scala/org/apache/nlpcraft/server/rest/NCBasicRestApi.scala 
b/nlpcraft/src/main/scala/org/apache/nlpcraft/server/rest/NCBasicRestApi.scala
index 7150d82..5b4afd3 100644
--- 
a/nlpcraft/src/main/scala/org/apache/nlpcraft/server/rest/NCBasicRestApi.scala
+++ 
b/nlpcraft/src/main/scala/org/apache/nlpcraft/server/rest/NCBasicRestApi.scala
@@ -1900,7 +1900,7 @@ class NCBasicRestApi extends NCRestApi with LazyLogging 
with NCOpenCensusTrace w
 
                 // Common case.
                 case _: Rejection => complete(s"Bad request.")
-            }.result
+            }.result()
     }
 
     /**
diff --git 
a/nlpcraft/src/main/scala/org/apache/nlpcraft/server/user/NCUserManager.scala 
b/nlpcraft/src/main/scala/org/apache/nlpcraft/server/user/NCUserManager.scala
index ce3f56d..0dc3678 100644
--- 
a/nlpcraft/src/main/scala/org/apache/nlpcraft/server/user/NCUserManager.scala
+++ 
b/nlpcraft/src/main/scala/org/apache/nlpcraft/server/user/NCUserManager.scala
@@ -18,7 +18,6 @@
 package org.apache.nlpcraft.server.user
 
 import java.util.{Timer, TimerTask}
-
 import io.opencensus.trace.Span
 import org.apache.commons.validator.routines.EmailValidator
 import org.apache.ignite.{IgniteAtomicSequence, IgniteCache, IgniteSemaphore, 
IgniteState, Ignition}
@@ -31,7 +30,7 @@ import org.apache.nlpcraft.server.mdo.NCUserMdo
 import org.apache.nlpcraft.server.sql.{NCSql, NCSqlManager}
 import org.apache.nlpcraft.server.tx.NCTxManager
 
-import scala.collection.JavaConverters._
+import scala.jdk.CollectionConverters.IterableHasAsScala
 import scala.util.control.Exception._
 
 /**
@@ -142,7 +141,7 @@ object NCUserManager extends NCService with 
NCIgniteInstance {
 
         scanner.scheduleAtFixedRate(
             new TimerTask() {
-                def run() {
+                def run(): Unit = {
                     // This doesn't 100% guarantee that we won't run into a 
race condition
                     // with the shutdown hook on Ignite.
                     if (Ignition.state() == IgniteState.STARTED)

Reply via email to