classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cp-patches] FYI: DEBUG cleanup in ObjectOutputStream


From: Dalibor Topic
Subject: [cp-patches] FYI: DEBUG cleanup in ObjectOutputStream
Date: Sun, 10 Jul 2005 20:06:58 +0200
User-agent: Mozilla Thunderbird 1.0.2-6 (X11/20050513)

Hi all,

I've cleaned up ObjectOutputStream a bit.

2005-07-10  Dalibor Topic  <address@hidden>

        * 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
   {

reply via email to

[Prev in Thread] Current Thread [Next in Thread]