commit | e26ed202103200c03ac5b413be3410d628458ff2 | [log] [tgz] |
---|---|---|
author | Richard S. Hall <rickhall@apache.org> | Thu Jul 13 13:34:25 2006 +0000 |
committer | Richard S. Hall <rickhall@apache.org> | Thu Jul 13 13:34:25 2006 +0000 |
tree | 0f6de51d3e01d983bda983ef2954d7655b434374 | |
parent | bc54962a3e3f50904a22c4ec32521b3faecc4644 [diff] |
Modified lexer to use Character.isWhitespace() for determining if a character is white space. git-svn-id: https://svn.apache.org/repos/asf/incubator/felix/trunk@421622 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/org.apache.felix.framework/src/main/java/org/apache/felix/framework/util/ldap/LdapLexer.java b/org.apache.felix.framework/src/main/java/org/apache/felix/framework/util/ldap/LdapLexer.java index 0aa1511..73c2df9 100644 --- a/org.apache.felix.framework/src/main/java/org/apache/felix/framework/util/ldap/LdapLexer.java +++ b/org.apache.felix.framework/src/main/java/org/apache/felix/framework/util/ldap/LdapLexer.java
@@ -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