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

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


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

commit c9dfc3aa1ace63fd0ece49c2411325e4da8f3702
Author: Sergey Kamov <[email protected]>
AuthorDate: Tue Apr 27 10:55:29 2021 +0300

    WIP.
---
 .../nplcraft/example/minecraft/NCMinecraftExampleMod.java     | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git 
a/nlpcraft-examples/minecraft-mod/src/main/java/org/apache/nplcraft/example/minecraft/NCMinecraftExampleMod.java
 
b/nlpcraft-examples/minecraft-mod/src/main/java/org/apache/nplcraft/example/minecraft/NCMinecraftExampleMod.java
index 2b26ee6..1adb1c9 100644
--- 
a/nlpcraft-examples/minecraft-mod/src/main/java/org/apache/nplcraft/example/minecraft/NCMinecraftExampleMod.java
+++ 
b/nlpcraft-examples/minecraft-mod/src/main/java/org/apache/nplcraft/example/minecraft/NCMinecraftExampleMod.java
@@ -46,7 +46,6 @@ import java.util.Set;
  */
 @Mod("nlpcraft_mod")
 public class NCMinecraftExampleMod {
-public class NCExampleMod {
     // Initial configuration values for communication with NLPCraft server.
     // These values can be overridden by 'nlpcraft-settings.json' file values.
     private static final String DFLT_EMAIL = "[email protected]";
@@ -54,7 +53,7 @@ public class NCExampleMod {
     private static final String DFLT_HOST = "0.0.0.0";
     private static final int DFLT_PORT = 8081;
 
-    // Model ID which should be loaded in probe.
+    private static final Logger LOGGER = LogManager.getLogger();
     private static final String MODEL_ID = "nlpcraft.minecraft.ex";
     private static final Gson GSON = new Gson();
 
@@ -174,13 +173,13 @@ public class NCExampleMod {
      * Makes sign in JSON bean.
      *
      * @param email Email.
-     * @param pwd Password.
+     * @param pwd   Password.
      */
     private static NCSignIn mkSignin(String email, String pwd) {
         NCSignIn s = new NCSignIn();
 
         s.email = email;
-        s.passwd = passwd;
+        s.passwd = pwd;
 
         return s;
     }
@@ -237,9 +236,9 @@ public class NCExampleMod {
     /**
      * Does REST POST.
      *
-     * @param url POST URL.
+     * @param url      POST URL.
      * @param postJson POST JSON payload.
-     * @param clazz Return value type.
+     * @param clazz    Return value type.
      */
     private <T> T post(String url, String postJson, Class<T> clazz) throws 
Exception {
         assert baseUrl != null;

Reply via email to