Perform the cheaper test first

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1300531 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sebastian Bazley 2012-03-14 13:03:11 +00:00
parent d2c8f90800
commit 18d706032a
1 changed files with 1 additions and 1 deletions

View File

@ -518,7 +518,7 @@ class CSVLexer {
* @return true if the given char is a whitespace character
*/
private boolean isWhitespace(int c) {
return Character.isWhitespace((char) c) && (c != format.getDelimiter());
return (c != format.getDelimiter()) && Character.isWhitespace((char) c);
}
/**