servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r752013 - /servicemix/smx4/nmr/trunk/jbi/commands/src/main/java/org/apache/servicemix/jbi/commands/ListCommand.java
Date Tue, 10 Mar 2009 08:07:54 GMT
Author: gnodet
Date: Tue Mar 10 08:07:52 2009
New Revision: 752013

URL: http://svn.apache.org/viewvc?rev=752013&view=rev
Log:
Avoid displaying 'null' when no description is available

Modified:
    servicemix/smx4/nmr/trunk/jbi/commands/src/main/java/org/apache/servicemix/jbi/commands/ListCommand.java

Modified: servicemix/smx4/nmr/trunk/jbi/commands/src/main/java/org/apache/servicemix/jbi/commands/ListCommand.java
URL: http://svn.apache.org/viewvc/servicemix/smx4/nmr/trunk/jbi/commands/src/main/java/org/apache/servicemix/jbi/commands/ListCommand.java?rev=752013&r1=752012&r2=752013&view=diff
==============================================================================
--- servicemix/smx4/nmr/trunk/jbi/commands/src/main/java/org/apache/servicemix/jbi/commands/ListCommand.java
(original)
+++ servicemix/smx4/nmr/trunk/jbi/commands/src/main/java/org/apache/servicemix/jbi/commands/ListCommand.java
Tue Mar 10 08:07:52 2009
@@ -37,7 +37,7 @@
             io.out.println("Shared Libraries");
             io.out.println("----------------");
             for (SharedLibrary library : libraries) {
-                io.out.println(library.getName() + " - " + library.getVersion() + " - " +
library.getDescription());
+                io.out.println(library.getName() + " - " + library.getVersion() + " - " +
(library.getDescription() != null ? library.getDescription() : ""));
             }
             io.out.println();
         }
@@ -50,7 +50,7 @@
             for (Component component : components) {
                 io.out.println("[" + getStateString(component.getCurrentState())+ "] ["
                         + getNameString(component.getName(), NAME_COL_LENGTH) + "]     "
-                        + component.getDescription());
+                        + (component.getDescription() != null ? component.getDescription()
: ""));
             }
             io.out.println();
         }
@@ -63,7 +63,7 @@
             for (ServiceAssembly assembly : assemblies) {
                 io.out.println("[" + getStateString(assembly.getCurrentState())+ "] ["
                         + getNameString(assembly.getName(), NAME_COL_LENGTH) + "]     "
-                        + assembly.getDescription());
+                        + (assembly.getDescription() != null ? assembly.getDescription()
: ""));
             }
             io.out.println();
         }



Mime
View raw message