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