Skip to content

Commit 8a526c0

Browse files
committed
Useless parentheses.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1743431 13f79535-47bb-0310-9956-ffa450edef68
1 parent 4a6af45 commit 8a526c0

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1164,13 +1164,13 @@ private CharSequence trim(final CharSequence charSequence) {
11641164
int len = count;
11651165
int pos = 0;
11661166

1167-
while ((pos < len) && (charSequence.charAt(pos) <= ' ')) {
1167+
while (pos < len && charSequence.charAt(pos) <= ' ') {
11681168
pos++;
11691169
}
1170-
while ((pos < len) && (charSequence.charAt(len - 1) <= ' ')) {
1170+
while (pos < len && charSequence.charAt(len - 1) <= ' ') {
11711171
len--;
11721172
}
1173-
return (pos > 0) || (len < count) ? charSequence.subSequence(pos, len) : charSequence;
1173+
return pos > 0 || len < count ? charSequence.subSequence(pos, len) : charSequence;
11741174
}
11751175

11761176
/**

0 commit comments

Comments
 (0)