You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@felix.apache.org by ri...@apache.org on 2006/07/13 15:34:28 UTC
svn commit: r421622 -
/incubator/felix/trunk/org.apache.felix.framework/src/main/java/org/apache/felix/framework/util/ldap/LdapLexer.java
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