commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From skitch...@apache.org
Subject svn commit: r384409 - /jakarta/commons/proper/logging/contrib/simon/jcl2/core/java/org/apache/commons/logging/Utils.java
Date Thu, 09 Mar 2006 02:59:00 GMT
Author: skitching
Date: Wed Mar  8 18:58:58 2006
New Revision: 384409

URL: http://svn.apache.org/viewcvs?rev=384409&view=rev
Log:
Fix bug where lines with whitespace or comments not starting in column 0
were being treated as the classname. Thanks to Rahul Akolkar for spotting this.

Modified:
    jakarta/commons/proper/logging/contrib/simon/jcl2/core/java/org/apache/commons/logging/Utils.java

Modified: jakarta/commons/proper/logging/contrib/simon/jcl2/core/java/org/apache/commons/logging/Utils.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/logging/contrib/simon/jcl2/core/java/org/apache/commons/logging/Utils.java?rev=384409&r1=384408&r2=384409&view=diff
==============================================================================
--- jakarta/commons/proper/logging/contrib/simon/jcl2/core/java/org/apache/commons/logging/Utils.java
(original)
+++ jakarta/commons/proper/logging/contrib/simon/jcl2/core/java/org/apache/commons/logging/Utils.java
Wed Mar  8 18:58:58 2006
@@ -140,11 +140,11 @@
         final InputStreamReader isr = new InputStreamReader(is);
         final BufferedReader reader = new BufferedReader(isr);
         for(;;) {
-            final String s = reader.readLine();
+            String s = reader.readLine();
             if (s == null) {
                 return null;
             }
-            s.trim();
+            s = s.trim();
             if ((s.length() > 0) && !s.startsWith("#")) {
                 return s;
             }



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message