ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anovi...@apache.org
Subject [49/50] incubator-ignite git commit: # ignite-185 Minor fix
Date Wed, 04 Mar 2015 03:11:26 GMT
# ignite-185 Minor fix


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

Branch: refs/heads/ignite-185
Commit: 8b81741e76a896b8459bd05f7cc76e7515de8e9e
Parents: f8478f5
Author: anovikov <anovikov@gridgain.com>
Authored: Wed Mar 4 09:39:39 2015 +0700
Committer: anovikov <anovikov@gridgain.com>
Committed: Wed Mar 4 09:39:39 2015 +0700

----------------------------------------------------------------------
 .../src/main/scala/org/apache/ignite/visor/visor.scala   | 11 +++--------
 1 file changed, 3 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/8b81741e/modules/visor-console/src/main/scala/org/apache/ignite/visor/visor.scala
----------------------------------------------------------------------
diff --git a/modules/visor-console/src/main/scala/org/apache/ignite/visor/visor.scala b/modules/visor-console/src/main/scala/org/apache/ignite/visor/visor.scala
index cdaaf88..c1961ce 100644
--- a/modules/visor-console/src/main/scala/org/apache/ignite/visor/visor.scala
+++ b/modules/visor-console/src/main/scala/org/apache/ignite/visor/visor.scala
@@ -36,7 +36,6 @@ import org.apache.ignite.internal.visor.VisorTaskArgument
 import org.apache.ignite.internal.visor.node.VisorNodeEventsCollectorTask
 import org.apache.ignite.internal.visor.node.VisorNodeEventsCollectorTask.VisorNodeEventsCollectorTaskArg
 import org.apache.ignite.internal.visor.util.VisorTaskUtils._
-import org.apache.ignite.internal.IgniteEx
 import org.apache.ignite.lang.{IgniteNotPeerDeployable, IgnitePredicate}
 import org.apache.ignite.spi.communication.tcp.TcpCommunicationSpi
 import org.apache.ignite.thread.IgniteThreadPoolExecutor
@@ -55,7 +54,6 @@ import org.apache.ignite.visor.commands.{VisorConsoleCommand, VisorTextTable}
 import scala.collection.JavaConversions._
 import scala.collection.immutable
 import scala.language.{implicitConversions, reflectiveCalls}
-import scala.reflect.ClassTag
 import scala.util.control.Breaks._
 
 /**
@@ -997,7 +995,7 @@ object visor extends VisorTag {
      * @param a Parameter.
      * @param dflt Value to return if `a` is `null`.
      */
-    def safe(@Nullable a: Any, dflt: Any = NA): String = {
+    def safe(@Nullable a: Any, dflt: Any = NA) = {
         assert(dflt != null)
 
         if (a != null) a.toString else dflt.toString
@@ -1010,9 +1008,8 @@ object visor extends VisorTag {
      * @param dflt Value to return if `arr` is `null` or empty.
      * @return String.
      */
-    def arr2Str[T: ClassTag](arr: Array[T], dflt: Any = NA): String = {
+    def arr2Str[T](arr: Array[T], dflt: Any = NA) =
         if (arr != null && arr.length > 0) U.compact(arr.mkString(", ")) else
dflt.toString
-    }
 
     /**
      * Converts `Boolean` to 'on'/'off' string.
@@ -1020,9 +1017,7 @@ object visor extends VisorTag {
      * @param bool Boolean value.
      * @return String.
      */
-    def bool2Str(bool: Boolean): String = {
-        if (bool) "on" else "off"
-    }
+    def bool2Str(bool: Boolean) = if (bool) "on" else "off"
 
     /**
      * Reconstructs string presentation for given argument.


Mime
View raw message