Skip to content

Commit 18d7060

Browse files
committed
Perform the cheaper test first
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1300531 13f79535-47bb-0310-9956-ffa450edef68
1 parent d2c8f90 commit 18d7060

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/org/apache/commons/csv/CSVParser.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ private int readEscape(int c) throws IOException {
518518
* @return true if the given char is a whitespace character
519519
*/
520520
private boolean isWhitespace(int c) {
521-
return Character.isWhitespace((char) c) && (c != format.getDelimiter());
521+
return (c != format.getDelimiter()) && Character.isWhitespace((char) c);
522522
}
523523

524524
/**

0 commit comments

Comments
 (0)