Index: NestedThrowable.java
===================================================================
RCS file: /cvsroot/jboss/jboss-common/src/main/org/jboss/util/NestedThrowable.java,v
retrieving revision 1.2
diff -u -r1.2 NestedThrowable.java
--- NestedThrowable.java	17 Feb 2002 03:47:52 -0000	1.2
+++ NestedThrowable.java	17 Apr 2002 19:56:18 -0000
@@ -60,15 +60,11 @@
       public static String getMessage(final String msg,
                                       final Throwable nested)
       {
-         StringBuffer buff = new StringBuffer(msg == null ? "" : msg);
-
-         if (nested != null) {
-            buff.append(msg == null ? "- " : "; - ")
-               .append("nested throwable is: ")
-               .append(nested);
-         }
- 
-         return buff.toString();
+           if (msg != null){
+               return msg;
+           } else {
+               return new String();
+           }
       }
 
       /**
@@ -80,22 +76,7 @@
       public static void print(final NestedThrowable t,
                                final PrintStream stream)
       {
-         if (t == null)
-            throw new NullArgumentException("t");
-
-         Throwable nested = t.getNested();
-
-         if (nested != null) {
-            if (stream == null)
-               throw new NullArgumentException("stream");
-
-            synchronized (stream) {
-               stream.println(t);
-               stream.print(" + nested throwable: ");
-               nested.printStackTrace(stream);
-               stream.print(" + throwable: ");
-            }
-         }
+         print(t, new PrintWriter(stream));
       }
 
       /**
