Useless parentheses.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1743431 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gary D. Gregory 2016-05-11 21:10:38 +00:00
parent 4a6af45908
commit 8a526c0ab5
1 changed files with 3 additions and 3 deletions

View File

@ -1164,13 +1164,13 @@ public final class CSVFormat implements Serializable {
int len = count; int len = count;
int pos = 0; int pos = 0;
while ((pos < len) && (charSequence.charAt(pos) <= ' ')) { while (pos < len && charSequence.charAt(pos) <= ' ') {
pos++; pos++;
} }
while ((pos < len) && (charSequence.charAt(len - 1) <= ' ')) { while (pos < len && charSequence.charAt(len - 1) <= ' ') {
len--; len--;
} }
return (pos > 0) || (len < count) ? charSequence.subSequence(pos, len) : charSequence; return pos > 0 || len < count ? charSequence.subSequence(pos, len) : charSequence;
} }
/** /**