# ignite-573 Fixed javadoc.

Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/70475a23
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/70475a23
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/70475a23

Branch: refs/heads/sprint-3
Commit: 70475a237e6ae5434d0d98b5b909d92acdc24b5f
Parents: aa168f4
Author: anovikov <anovi...@gridgain.com>
Authored: Wed Mar 25 10:42:18 2015 +0700
Committer: anovikov <anovi...@gridgain.com>
Committed: Wed Mar 25 10:42:18 2015 +0700

----------------------------------------------------------------------
 .../ignite/visor/commands/deploy/VisorDeployCommand.scala    | 8 ++++----
 .../ignite/visor/commands/tasks/VisorTasksCommand.scala      | 8 +-------
 2 files changed, 5 insertions(+), 11 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/70475a23/modules/visor-console/src/main/scala/org/apache/ignite/visor/commands/deploy/VisorDeployCommand.scala
----------------------------------------------------------------------
diff --git 
a/modules/visor-console/src/main/scala/org/apache/ignite/visor/commands/deploy/VisorDeployCommand.scala
 
b/modules/visor-console/src/main/scala/org/apache/ignite/visor/commands/deploy/VisorDeployCommand.scala
index 7c3dcc1..3856672 100644
--- 
a/modules/visor-console/src/main/scala/org/apache/ignite/visor/commands/deploy/VisorDeployCommand.scala
+++ 
b/modules/visor-console/src/main/scala/org/apache/ignite/visor/commands/deploy/VisorDeployCommand.scala
@@ -414,7 +414,7 @@ class VisorDeployCommand {
 
             val port =
                 try
-                    if (hostPort.size > 1) hostPort(1).toInt else DFLT_PORT
+                    if (hostPort.length > 1) hostPort(1).toInt else DFLT_PORT
                 catch {
                     case e: NumberFormatException =>
                         scold("Invalid port number: " + hostPort(1)).^^
@@ -429,7 +429,7 @@ class VisorDeployCommand {
             (hosts, port)
         }
 
-        if (arr.size == 1) {
+        if (arr.length == 1) {
             val (hosts, port) = extractHostsPort(arr(0))
 
             val uname = dfltUname getOrElse System.getProperty("user.name")
@@ -437,7 +437,7 @@ class VisorDeployCommand {
 
             hosts.map(VisorHost(_, port, uname, passwd))
         }
-        else if (arr.size == 2) {
+        else if (arr.length == 2) {
             val (hosts, port) = extractHostsPort(arr(1))
 
             arr = arr(0).split(':')
@@ -445,7 +445,7 @@ class VisorDeployCommand {
             val uname = arr(0)
 
             val passwd =
-                if (arr.size > 1)
+                if (arr.length > 1)
                     Some(arr(1))
                 else if (!hasKey)
                     Some(dfltPasswd getOrElse askPassword(uname))

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/70475a23/modules/visor-console/src/main/scala/org/apache/ignite/visor/commands/tasks/VisorTasksCommand.scala
----------------------------------------------------------------------
diff --git 
a/modules/visor-console/src/main/scala/org/apache/ignite/visor/commands/tasks/VisorTasksCommand.scala
 
b/modules/visor-console/src/main/scala/org/apache/ignite/visor/commands/tasks/VisorTasksCommand.scala
index 723c135..9d9dde0 100644
--- 
a/modules/visor-console/src/main/scala/org/apache/ignite/visor/commands/tasks/VisorTasksCommand.scala
+++ 
b/modules/visor-console/src/main/scala/org/apache/ignite/visor/commands/tasks/VisorTasksCommand.scala
@@ -536,13 +536,7 @@ class VisorTasksCommand {
             })
         }
 
-        /**
-         * If task name is task class name, show simple class name.
-         *
-         * @param taskName Task name.
-         * @param taskClsName Task class name.
-         * @return Simple class name.
-         */
+        // If task name is task class name, show simple class name.
         def taskSimpleName(taskName: String, taskClsName: String) =  {
             if (taskName == taskClsName || taskName == null) {
                 val idx = taskClsName.lastIndexOf('.')

Reply via email to