src/share/jaxws_classes/com/sun/xml/internal/bind/WhiteSpaceProcessor.java

Print this page

        

*** 164,182 **** } /** * Returns true if the specified string is all whitespace. */ ! public static final boolean isWhiteSpace(CharSequence s) { for( int i=s.length()-1; i>=0; i-- ) if(!isWhiteSpace(s.charAt(i))) return false; return true; } /** returns true if the specified char is a white space character. */ ! public static final boolean isWhiteSpace(char ch) { // most of the characters are non-control characters. // so check that first to quickly return false for most of the cases. if( ch>0x20 ) return false; // other than we have to do four comparisons. --- 164,182 ---- } /** * Returns true if the specified string is all whitespace. */ ! public static boolean isWhiteSpace(CharSequence s) { for( int i=s.length()-1; i>=0; i-- ) if(!isWhiteSpace(s.charAt(i))) return false; return true; } /** returns true if the specified char is a white space character. */ ! public static boolean isWhiteSpace(char ch) { // most of the characters are non-control characters. // so check that first to quickly return false for most of the cases. if( ch>0x20 ) return false; // other than we have to do four comparisons.
*** 185,195 **** /** * Returns true if the specified char is a white space character * but not 0x20. */ ! protected static final boolean isWhiteSpaceExceptSpace(char ch) { // most of the characters are non-control characters. // so check that first to quickly return false for most of the cases. if( ch>=0x20 ) return false; // other than we have to do four comparisons. --- 185,195 ---- /** * Returns true if the specified char is a white space character * but not 0x20. */ ! protected static boolean isWhiteSpaceExceptSpace(char ch) { // most of the characters are non-control characters. // so check that first to quickly return false for most of the cases. if( ch>=0x20 ) return false; // other than we have to do four comparisons.