commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1743434 - /commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVFormat.java
Date Wed, 11 May 2016 21:32:01 GMT
Author: ggregory
Date: Wed May 11 21:32:00 2016
New Revision: 1743434

URL: http://svn.apache.org/viewvc?rev=1743434&view=rev
Log:
Reuse constant instead of magic char.

Modified:
    commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVFormat.java

Modified: commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVFormat.java
URL: http://svn.apache.org/viewvc/commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVFormat.java?rev=1743434&r1=1743433&r2=1743434&view=diff
==============================================================================
--- commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVFormat.java (original)
+++ commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVFormat.java Wed May 11
21:32:00 2016
@@ -1164,10 +1164,10 @@ public final class CSVFormat implements
         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;



Mime
View raw message