servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r636259 - /servicemix/smx4/kernel/trunk/gshell/gshell-osgi/src/main/java/org/apache/geronimo/gshell/osgi/Util.java
Date Wed, 12 Mar 2008 09:21:11 GMT
Author: gnodet
Date: Wed Mar 12 02:21:05 2008
New Revision: 636259

URL: http://svn.apache.org/viewvc?rev=636259&view=rev
Log:
Improve display of service properties of an unrecognized type

Modified:
    servicemix/smx4/kernel/trunk/gshell/gshell-osgi/src/main/java/org/apache/geronimo/gshell/osgi/Util.java

Modified: servicemix/smx4/kernel/trunk/gshell/gshell-osgi/src/main/java/org/apache/geronimo/gshell/osgi/Util.java
URL: http://svn.apache.org/viewvc/servicemix/smx4/kernel/trunk/gshell/gshell-osgi/src/main/java/org/apache/geronimo/gshell/osgi/Util.java?rev=636259&r1=636258&r2=636259&view=diff
==============================================================================
--- servicemix/smx4/kernel/trunk/gshell/gshell-osgi/src/main/java/org/apache/geronimo/gshell/osgi/Util.java
(original)
+++ servicemix/smx4/kernel/trunk/gshell/gshell-osgi/src/main/java/org/apache/geronimo/gshell/osgi/Util.java
Wed Mar 12 02:21:05 2008
@@ -96,8 +96,14 @@
             {
                 return ((Float) obj).toString();
             }
-
-            return "<unknown value type>";
+            else if (obj == null)
+            {
+                return "null";
+            }
+            else
+            {
+                return obj.toString();
+            }
         }
     }
 }



Mime
View raw message