commit-classpath
[Top][All Lists]
Advanced

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

[commit-cp] classpath ChangeLog gnu/javax/security/auth/log...


From: Raif S. Naffah
Subject: [commit-cp] classpath ChangeLog gnu/javax/security/auth/log...
Date: Wed, 14 Jun 2006 09:53:36 +0000

CVSROOT:        /cvsroot/classpath
Module name:    classpath
Changes by:     Raif S. Naffah <raif>   06/06/14 09:53:36

Modified files:
        .              : ChangeLog 
        gnu/javax/security/auth/login: ConfigFileTokenizer.java 

Log message:
        2006-06-14  Raif S. Naffah  <address@hidden>
        
                * gnu/javax/security/auth/login/ConfigFileTokenizer.java: Fixed 
a typo.
                Condition all trace/debug code based on Configuration.DEBUG.
                Use logger instead of STDOUT and ot STDERR.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/classpath/ChangeLog?cvsroot=classpath&r1=1.7805&r2=1.7806
http://cvs.savannah.gnu.org/viewcvs/classpath/gnu/javax/security/auth/login/ConfigFileTokenizer.java?cvsroot=classpath&r1=1.1&r2=1.2

Patches:
Index: ChangeLog
===================================================================
RCS file: /cvsroot/classpath/classpath/ChangeLog,v
retrieving revision 1.7805
retrieving revision 1.7806
diff -u -b -r1.7805 -r1.7806
--- ChangeLog   13 Jun 2006 21:39:21 -0000      1.7805
+++ ChangeLog   14 Jun 2006 09:53:35 -0000      1.7806
@@ -1,3 +1,9 @@
+2006-06-14  Raif S. Naffah  <address@hidden>
+
+       * gnu/javax/security/auth/login/ConfigFileTokenizer.java: Fixed a typo.
+       Condition all trace/debug code based on Configuration.DEBUG.
+       Use logger instead of STDOUT and ot STDERR.
+
 2006-06-13  Lillian Angel  <address@hidden>
 
        * native/plugin/gcjwebplugin.cc

Index: gnu/javax/security/auth/login/ConfigFileTokenizer.java
===================================================================
RCS file: 
/cvsroot/classpath/classpath/gnu/javax/security/auth/login/ConfigFileTokenizer.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- gnu/javax/security/auth/login/ConfigFileTokenizer.java      15 Jan 2006 
19:42:52 -0000      1.1
+++ gnu/javax/security/auth/login/ConfigFileTokenizer.java      14 Jun 2006 
09:53:36 -0000      1.2
@@ -38,14 +38,17 @@
 
 package gnu.javax.security.auth.login;
 
+import gnu.classpath.Configuration;
+
 import java.io.BufferedReader;
 import java.io.IOException;
 import java.io.Reader;
+import java.util.logging.Logger;
 
 /**
  * A UTF-8 friendly, JAAS Login Module Configuration file tokenizer written in
  * the deault syntax. This class emulates, to a certain extent, the behavior of
- * a address@hidden java.io.SrteamTokenizer} instance <code>st</code>, when 
set as
+ * a address@hidden java.io.StreamTokenizer} instance <code>st</code>, when 
set as
  * follows:
  * 
  *  <pre>
@@ -76,12 +79,7 @@
  */
 public class ConfigFileTokenizer
 {
-  // Constants and fields
-  // --------------------------------------------------------------------------
-
-  private static final boolean DEBUG = false;
-  private static final void debug(String m) {if (DEBUG) 
System.err.println(m);};
-
+  private static final Logger log = 
Logger.getLogger(ConfigFileParser.class.getName());
   /** A constant indicating that the end of the stream has been read. */
   public static final int TT_EOF = -1;
   /** A constant indicating that a word token has been read. */
@@ -235,9 +233,12 @@
 
   private void abort(String m) throws IOException
   {
-    debug("DEBUG: " + m);
-    debug("DEBUG: sb = " + sb);
-    debug("DEBUG: sbNdx = " + sbNdx);
+    if (Configuration.DEBUG)
+      {
+        log.fine(m);
+        log.fine("sb = " + sb);
+        log.fine("sbNdx = " + sbNdx);
+      }
     throw new IOException(m);
   }
 }




reply via email to

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