commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1397864 - /commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/Lexer.java
Date Sat, 13 Oct 2012 15:43:40 GMT
Author: ggregory
Date: Sat Oct 13 15:43:40 2012
New Revision: 1397864

URL: http://svn.apache.org/viewvc?rev=1397864&view=rev
Log:
Rename method nullMeansDisabled() to mapNullToDisabled()

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

Modified: commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/Lexer.java
URL: http://svn.apache.org/viewvc/commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/Lexer.java?rev=1397864&r1=1397863&r2=1397864&view=diff
==============================================================================
--- commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/Lexer.java (original)
+++ commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/Lexer.java Sat Oct 13 15:43:40
2012
@@ -56,14 +56,14 @@ abstract class Lexer {
         this.format = format;
         this.in = in;
         this.delimiter = format.getDelimiter();
-        this.escape = nullMeansDisabled(format.getEscape());
-        this.encapsulator = nullMeansDisabled(format.getEncapsulator());
-        this.commmentStart = nullMeansDisabled(format.getCommentStart());
+        this.escape = mapNullToDisabled(format.getEscape());
+        this.encapsulator = mapNullToDisabled(format.getEncapsulator());
+        this.commmentStart = mapNullToDisabled(format.getCommentStart());
         this.ignoreSurroundingSpaces = format.getIgnoreSurroundingSpaces();
         this.ignoreEmptyLines = format.getIgnoreEmptyLines();
     }
 
-    private final char nullMeansDisabled(Character c) {
+    private final char mapNullToDisabled(Character c) {
         return c == null ? DISABLED : c.charValue();
     }
 



Mime
View raw message