commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tyler MacLeod <macleod.ty...@gmail.com>
Subject [lang] Whitespace method.
Date Fri, 04 Mar 2011 14:47:05 GMT
Java 5 introduces a new Space predicate to the Character class called
isSpaceChar (http://download.oracle.com/javase/6/docs/api/java/lang/Character.html#isSpaceChar(int)).
It was introduced to correct some false negatives with isWhitespace
such as with a non-breaking space.

I would recommend replacing the isWhitespace usage in both StringUtils
and WordUtils.

- Tyler

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


Mime
View raw message