felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rickh...@apache.org
Subject svn commit: r421622 - /incubator/felix/trunk/org.apache.felix.framework/src/main/java/org/apache/felix/framework/util/ldap/LdapLexer.java
Date Thu, 13 Jul 2006 13:34:28 GMT
Author: rickhall
Date: Thu Jul 13 06:34:25 2006
New Revision: 421622

URL: http://svn.apache.org/viewvc?rev=421622&view=rev
Log:
Modified lexer to use Character.isWhitespace() for determining if a
character is white space.

Modified:
    incubator/felix/trunk/org.apache.felix.framework/src/main/java/org/apache/felix/framework/util/ldap/LdapLexer.java

Modified: incubator/felix/trunk/org.apache.felix.framework/src/main/java/org/apache/felix/framework/util/ldap/LdapLexer.java
URL: http://svn.apache.org/viewvc/incubator/felix/trunk/org.apache.felix.framework/src/main/java/org/apache/felix/framework/util/ldap/LdapLexer.java?rev=421622&r1=421621&r2=421622&view=diff
==============================================================================
--- incubator/felix/trunk/org.apache.felix.framework/src/main/java/org/apache/felix/framework/util/ldap/LdapLexer.java
(original)
+++ incubator/felix/trunk/org.apache.felix.framework/src/main/java/org/apache/felix/framework/util/ldap/LdapLexer.java
Thu Jul 13 06:34:25 2006
@@ -24,8 +24,6 @@
     static final int EOF = -1;
     static final int NOCHAR = 0; // signal no peeked char; different from EOF
 
-    public static final String WHITESPACE = " \t\n\r";
-
     Reader reader = null;
 
     int nextChar = NOCHAR; // last peeked character
@@ -66,7 +64,7 @@
 
     void skipwhitespace() throws IOException
     {
-    while(WHITESPACE.indexOf(peek()) >= 0) get();
+        while (Character.isWhitespace((char) peek())) get();
     }
 
     public int getnw() throws IOException // next non-whitespace char



Mime
View raw message