Hi all,

I've cleaned up ObjectOutputStream a bit.

2005-07-10  Dalibor Topic  <[EMAIL PROTECTED]>

        * java/io/ObjectOutputStream.java (DEBUG): New constant.
        (ObjectOutputStream, writeObject) Use internal debug switch.

cheers,
dalibor topic
? bin
Index: java/io/ObjectOutputStream.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/io/ObjectOutputStream.java,v
retrieving revision 1.54
diff -u -r1.54 ObjectOutputStream.java
--- java/io/ObjectOutputStream.java	2 Jul 2005 20:32:38 -0000	1.54
+++ java/io/ObjectOutputStream.java	10 Jul 2005 17:51:07 -0000
@@ -146,7 +146,7 @@
     useSubclassMethod = false;
     writeStreamHeader();
 
-    if (Configuration.DEBUG)
+    if (DEBUG)
       {
 	String val = System.getProperty("gcj.dumpobjects");
 	if (val != null && !val.equals(""))
@@ -378,7 +378,7 @@
 	setBlockDataMode(false);
 	try
 	  {
-	    if (Configuration.DEBUG)
+	    if (DEBUG)
 	      {
 		e.printStackTrace(System.out);
 	      }
@@ -389,7 +389,7 @@
 	    StreamCorruptedException ex = 
 	      new StreamCorruptedException
 	      (ioe + " thrown while exception was being written to stream.");
-	    if (Configuration.DEBUG)
+	    if (DEBUG)
 	      {
 		ex.printStackTrace(System.out);
 	      }
@@ -1559,6 +1565,8 @@
 
   // Set if we're generating debugging dumps
   private boolean dump = false;
+
+  private static final boolean DEBUG = false;
 
   static
   {
_______________________________________________
Classpath-patches mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/classpath-patches

Reply via email to