From 87466459c0086004703341766df2609467ea0b89 Mon Sep 17 00:00:00 2001 From: "Gary D. Gregory" Date: Tue, 11 Sep 2012 19:03:03 +0000 Subject: [PATCH] Add default serialVersionUID to two classes. git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1383556 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/java/org/apache/commons/csv/CSVFormat.java | 2 ++ src/main/java/org/apache/commons/csv/CSVRecord.java | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/main/java/org/apache/commons/csv/CSVFormat.java b/src/main/java/org/apache/commons/csv/CSVFormat.java index e4622595..f72501a8 100644 --- a/src/main/java/org/apache/commons/csv/CSVFormat.java +++ b/src/main/java/org/apache/commons/csv/CSVFormat.java @@ -29,6 +29,8 @@ import java.io.StringWriter; */ public class CSVFormat implements Serializable { + private static final long serialVersionUID = 1L; + /** According to RFC 4180, line breaks are delimited by CRLF */ public static final String CRLF = "\r\n"; diff --git a/src/main/java/org/apache/commons/csv/CSVRecord.java b/src/main/java/org/apache/commons/csv/CSVRecord.java index 8fad43e0..f1262407 100644 --- a/src/main/java/org/apache/commons/csv/CSVRecord.java +++ b/src/main/java/org/apache/commons/csv/CSVRecord.java @@ -27,6 +27,8 @@ import java.util.Map; */ public class CSVRecord implements Serializable, Iterable { + private static final long serialVersionUID = 1L; + private static final String[] EMPTY_STRING_ARRAY = new String[0]; /** The values of the record */