classpath-patches
[Top][All Lists]
Advanced

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

[cp-patches] FYI: DEBUG usage cleanup in ObjectInputStream


From: Dalibor Topic
Subject: [cp-patches] FYI: DEBUG usage cleanup in ObjectInputStream
Date: Sun, 10 Jul 2005 19:46:55 +0200
User-agent: Mozilla Thunderbird 1.0.2-6 (X11/20050513)

Hi all,

I've cleaned things up in ObjectInputStream a bit.

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

        * java/io/ObjectInputStream.java (DEBUG):
        New private static field.
        (ObjectInputStream, resolveClass) Use DEBUG.

cheers,
dalibor topic
? bin
Index: java/io/ObjectInputStream.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/io/ObjectInputStream.java,v
retrieving revision 1.58
diff -u -r1.58 ObjectInputStream.java
--- java/io/ObjectInputStream.java      2 Jul 2005 20:32:38 -0000       1.58
+++ java/io/ObjectInputStream.java      10 Jul 2005 17:30:17 -0000
@@ -75,7 +75,7 @@
   public ObjectInputStream(InputStream in)
     throws IOException, StreamCorruptedException
   {
-    if (Configuration.DEBUG)
+    if (DEBUG)
       {
        String val = System.getProperty("gcj.dumpobjects");
        if (dump == false && val != null && !val.equals(""))
@@ -773,7 +773,7 @@
     if (callersClassLoader == null)
       {
        callersClassLoader = currentLoader ();
-       if (Configuration.DEBUG && dump)
+       if (DEBUG && dump)
          {
            dumpElementln ("CallersClassLoader = " + callersClassLoader);
          }
@@ -1910,6 +1910,8 @@
 
   // The nesting depth for debugging output
   private int depth = 0;
+
+  private static final boolean DEBUG = false;
 
   private void dumpElement (String msg)
   {

reply via email to

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