mirror of
https://github.com/apache/commons-csv.git
synced 2025-03-02 14:59:07 +00:00
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
This commit is contained in:
parent
88d6162cde
commit
b033db6a21
@ -1164,10 +1164,10 @@ public final class CSVFormat implements Serializable {
|
||||
int len = count;
|
||||
int pos = 0;
|
||||
|
||||
while (pos < len && charSequence.charAt(pos) <= Constants.SP) {
|
||||
while (pos < len && charSequence.charAt(pos) <= SP) {
|
||||
pos++;
|
||||
}
|
||||
while (pos < len && charSequence.charAt(len - 1) <= Constants.SP) {
|
||||
while (pos < len && charSequence.charAt(len - 1) <= SP) {
|
||||
len--;
|
||||
}
|
||||
return pos > 0 || len < count ? charSequence.subSequence(pos, len) : charSequence;
|
||||
|
Loading…
x
Reference in New Issue
Block a user