You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by br...@apache.org on 2013/03/20 09:31:14 UTC

svn commit: r1458683 - in /commons/proper/csv/trunk/src/main/java/org/apache/commons/csv: CSVFormat.java CSVLexer.java CSVParser.java CSVPrinter.java CSVRecord.java Constants.java ExtendedBufferedReader.java Lexer.java Token.java

Author: britter
Date: Wed Mar 20 08:31:14 2013
New Revision: 1458683

URL: http://svn.apache.org/r1458683
Log:
Remove trailing white spaces

Modified:
    commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVFormat.java
    commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVLexer.java
    commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVParser.java
    commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVPrinter.java
    commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVRecord.java
    commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/Constants.java
    commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/ExtendedBufferedReader.java
    commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/Lexer.java
    commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/Token.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=1458683&r1=1458682&r2=1458683&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 Mar 20 08:31:14 2013
@@ -129,7 +129,7 @@ public class CSVFormat implements Serial
      *
      * @param delimiter
      *            the char used for value separation, must not be a line break character
-     * @return a new CSV format builder. 
+     * @return a new CSV format builder.
      * @throws IllegalArgumentException if the delimiter is a line break character
      */
     public static CSVFormatBuilder newBuilder(final char delimiter) {

Modified: commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVLexer.java
URL: http://svn.apache.org/viewvc/commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVLexer.java?rev=1458683&r1=1458682&r2=1458683&view=diff
==============================================================================
--- commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVLexer.java (original)
+++ commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVLexer.java Wed Mar 20 08:31:14 2013
@@ -26,8 +26,8 @@ import static org.apache.commons.csv.Tok
 import java.io.IOException;
 
 /**
- * 
- * 
+ *
+ *
  * @version $Id$
  */
 final class CSVLexer extends Lexer {

Modified: commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVParser.java
URL: http://svn.apache.org/viewvc/commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVParser.java?rev=1458683&r1=1458682&r2=1458683&view=diff
==============================================================================
--- commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVParser.java (original)
+++ commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVParser.java Wed Mar 20 08:31:14 2013
@@ -65,7 +65,7 @@ import java.util.NoSuchElementException;
  * <p>
  * see <a href="package-summary.html">package documentation</a> for more details
  * </p>
- * 
+ *
  * @version $Id$
  */
 public class CSVParser implements Iterable<CSVRecord> {

Modified: commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVPrinter.java
URL: http://svn.apache.org/viewvc/commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVPrinter.java?rev=1458683&r1=1458682&r2=1458683&view=diff
==============================================================================
--- commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVPrinter.java (original)
+++ commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVPrinter.java Wed Mar 20 08:31:14 2013
@@ -31,7 +31,7 @@ import java.sql.SQLException;
 
 /**
  * Prints values in a CSV format.
- * 
+ *
  * @version $Id$
  */
 public class CSVPrinter implements Flushable, Closeable {
@@ -48,7 +48,7 @@ public class CSVPrinter implements Flush
      * <p/>
      * Currently, only a pure encapsulation format or a pure escaping format is supported. Hybrid formats
      * (encapsulation and escaping with a different character) are not supported.
-     * 
+     *
      * @param out
      *            stream to which to print.
      * @param format
@@ -75,7 +75,7 @@ public class CSVPrinter implements Flush
 
     /**
      * Flushes the underlying stream.
-     * 
+     *
      * @throws IOException
      */
     public void flush() throws IOException {
@@ -87,7 +87,7 @@ public class CSVPrinter implements Flush
     /**
      * Prints a single line of delimiter separated values. The values will be quoted if needed. Quotes and newLine
      * characters will be escaped.
-     * 
+     *
      * @param values
      *            values to output.
      */
@@ -101,7 +101,7 @@ public class CSVPrinter implements Flush
     /**
      * Prints a single line of delimiter separated values. The values will be quoted if needed. Quotes and newLine
      * characters will be escaped.
-     * 
+     *
      * @param values
      *            values to output.
      */
@@ -118,7 +118,7 @@ public class CSVPrinter implements Flush
      * beginning of each new line in the comment.
      * <p/>
      * If comments are disabled in the current CSV format this method does nothing.
-     * 
+     *
      * @param comment
      *            the comment to output
      */
@@ -297,7 +297,7 @@ public class CSVPrinter implements Flush
             out.append(value, start, end);
             return;
         }
-        
+
         // we hit something that needed encapsulation
         out.append(quoteChar);
 
@@ -324,7 +324,7 @@ public class CSVPrinter implements Flush
 
     /**
      * Prints the string as the next value on the line. The value will be escaped or encapsulated as needed.
-     * 
+     *
      * @param value
      *            value to be output.
      * @throws IOException
@@ -338,7 +338,7 @@ public class CSVPrinter implements Flush
 
     /**
      * Prints all the objects in the given array.
-     * 
+     *
      * @param values
      *            the values to print.
      * @throws IOException
@@ -358,7 +358,7 @@ public class CSVPrinter implements Flush
 
     /**
      * Prints all the objects in the given collection.
-     * 
+     *
      * @param values
      *            the values to print.
      * @throws IOException
@@ -378,7 +378,7 @@ public class CSVPrinter implements Flush
 
     /**
      * Prints all the objects in the given JDBC result set.
-     * 
+     *
      * @param resultSet result set
      *            the values to print.
      * @throws IOException

Modified: commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVRecord.java
URL: http://svn.apache.org/viewvc/commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVRecord.java?rev=1458683&r1=1458682&r2=1458683&view=diff
==============================================================================
--- commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVRecord.java (original)
+++ commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVRecord.java Wed Mar 20 08:31:14 2013
@@ -24,7 +24,7 @@ import java.util.Map;
 
 /**
  * A CSV record
- * 
+ *
  * @version $Id$
  */
 public class CSVRecord implements Serializable, Iterable<String> {
@@ -41,7 +41,7 @@ public class CSVRecord implements Serial
 
     /** The accumulated comments (if any) */
     private final String comment;
-    
+
     /** The record number. */
     private final long recordNumber;
 
@@ -81,7 +81,7 @@ public class CSVRecord implements Serial
 
     /**
      * Checks whether a given column is mapped.
-     * 
+     *
      * @param name
      *            the name of the column to be retrieved.
      * @return whether a given columns is mapped.
@@ -89,10 +89,10 @@ public class CSVRecord implements Serial
     public boolean isMapped(final String name) {
         return mapping != null ? mapping.containsKey(name) : false;
     }
-    
+
     /**
      * Checks whether a given columns is mapped and has a value.
-     * 
+     *
      * @param name
      *            the name of the column to be retrieved.
      * @return whether a given columns is mapped.
@@ -100,7 +100,7 @@ public class CSVRecord implements Serial
     public boolean isSet(final String name) {
         return isMapped(name) && mapping.get(name).intValue() < values.length;
     }
-    
+
     public Iterator<String> iterator() {
         return Arrays.asList(values).iterator();
     }

Modified: commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/Constants.java
URL: http://svn.apache.org/viewvc/commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/Constants.java?rev=1458683&r1=1458682&r2=1458683&view=diff
==============================================================================
--- commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/Constants.java (original)
+++ commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/Constants.java Wed Mar 20 08:31:14 2013
@@ -19,19 +19,19 @@ package org.apache.commons.csv;
 
 /**
  * Constants for this package.
- * 
+ *
  * @version $Id$
  */
 final class Constants {
-    
+
     static final char BACKSPACE = '\b';
     static final char COMMA = ',';
-    
+
     /**
      * Starts a comment, the remainder of the line is the comment.
      */
     static final char COMMENT = '#';
-    
+
     static final char CR = '\r';
     static final Character DOUBLE_QUOTE_CHAR = Character.valueOf('"');
     static final char BACKSLASH = '\\';
@@ -40,13 +40,13 @@ final class Constants {
     static final char SP = ' ';
     static final char TAB = '\t';
     static final String EMPTY = "";
-    
+
     /** The end of stream symbol */
     static final int END_OF_STREAM = -1;
 
     /** Undefined state for the lookahead char */
     static final int UNDEFINED = -2;
-    
+
     /** According to RFC 4180, line breaks are delimited by CRLF */
     static final String CRLF = "\r\n";
 

Modified: commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/ExtendedBufferedReader.java
URL: http://svn.apache.org/viewvc/commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/ExtendedBufferedReader.java?rev=1458683&r1=1458682&r2=1458683&view=diff
==============================================================================
--- commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/ExtendedBufferedReader.java (original)
+++ commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/ExtendedBufferedReader.java Wed Mar 20 08:31:14 2013
@@ -31,7 +31,7 @@ import java.io.Reader;
  * <p>
  * In particular the reader supports a look-ahead option, which allows you to see the next char returned by
  * {@link #read()}.
- * 
+ *
  * @version $Id$
  */
 final class ExtendedBufferedReader extends BufferedReader {

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=1458683&r1=1458682&r2=1458683&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 Wed Mar 20 08:31:14 2013
@@ -29,7 +29,7 @@ import java.io.IOException;
 
 /**
  * Abstract lexer class; contains common utility routines shared by lexers
- * 
+ *
  * @version $Id$
  */
 abstract class Lexer {

Modified: commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/Token.java
URL: http://svn.apache.org/viewvc/commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/Token.java?rev=1458683&r1=1458682&r2=1458683&view=diff
==============================================================================
--- commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/Token.java (original)
+++ commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/Token.java Wed Mar 20 08:31:14 2013
@@ -23,7 +23,7 @@ import static org.apache.commons.csv.Tok
  * Internal token representation.
  * <p/>
  * It is used as contract between the lexer and the parser.
- * 
+ *
  * @version $Id$
  */
 final class Token {