Skip to content

Commit b033db6

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

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) <= Constants.SP) {
1167+
while (pos < len && charSequence.charAt(pos) <= SP) {
11681168
pos++;
11691169
}
1170-
while (pos < len && charSequence.charAt(len - 1) <= Constants.SP) {
1170+
while (pos < len && charSequence.charAt(len - 1) <= SP) {
11711171
len--;
11721172
}
11731173
return pos > 0 || len < count ? charSequence.subSequence(pos, len) : charSequence;

0 commit comments

Comments
 (0)