Skip to content

Commit 88d6162

Browse files
committed
Reuse constant instead of magic char.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1743432 13f79535-47bb-0310-9956-ffa450edef68
1 parent 8a526c0 commit 88d6162

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1164,10 +1164,10 @@ 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) <= Constants.SP) {
11681168
pos++;
11691169
}
1170-
while (pos < len && charSequence.charAt(len - 1) <= ' ') {
1170+
while (pos < len && charSequence.charAt(len - 1) <= Constants.SP) {
11711171
len--;
11721172
}
11731173
return pos > 0 || len < count ? charSequence.subSequence(pos, len) : charSequence;

0 commit comments

Comments
 (0)