classpath-patches
[Top][All Lists]
Advanced

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

Re: [cp-patches] FYI: Cleanup for Configuration.DEBUG in gnu.java.text


From: Dalibor Topic
Subject: Re: [cp-patches] FYI: Cleanup for Configuration.DEBUG in gnu.java.text
Date: Sun, 10 Jul 2005 19:12:45 +0200
User-agent: Mozilla Thunderbird 1.0.2-6 (X11/20050513)

Dalibor Topic wrote:
Hi all,

small cleanup for gnu/java/text/FormatCharacterIterator.java.

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

        * gnu/java/text/FormatCharacterIterator.java:
        Removed unnecessary import of gnu.classpath.Configuration.
        (DEBUG) New private static field.
        (debug, dumpTable) Use DEBUG.


added the patch this time around.

cheers,
dalibor topic
? bin
Index: gnu/java/text/FormatCharacterIterator.java
===================================================================
RCS file: 
/cvsroot/classpath/classpath/gnu/java/text/FormatCharacterIterator.java,v
retrieving revision 1.3
diff -u -r1.3 FormatCharacterIterator.java
--- gnu/java/text/FormatCharacterIterator.java  2 Jul 2005 20:32:15 -0000       
1.3
+++ gnu/java/text/FormatCharacterIterator.java  10 Jul 2005 15:08:31 -0000
@@ -37,8 +37,6 @@
 exception statement from your version. */
 package gnu.java.text;
 
-import gnu.classpath.Configuration;
-
 import java.text.AttributedCharacterIterator;
 import java.util.HashMap;
 import java.util.HashSet;
@@ -65,7 +63,8 @@
   private int attributeIndex;
   private int[] ranges;
   private HashMap[] attributes;
-  
+  private static final boolean DEBUG = false;
+
   /**
    * This constructor builds an empty iterated strings. The attributes
    * are empty and so is the string. However you may append strings
@@ -496,7 +495,7 @@
 
   private void debug(String s)
   {
-    if (Configuration.DEBUG)
+    if (DEBUG)
       System.out.println(s);
   }
 
@@ -504,7 +503,7 @@
   {
     int start_range = 0;
     
-    if (!Configuration.DEBUG)
+    if (!DEBUG)
       return;
 
     System.out.println("Dumping internal table:");

reply via email to

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