Skip to content

Commit 79d4fa0

Browse files
committed
[ 2b5f84e ] before bug fix 4
2 parents cdacb4d + 2b5f84e commit 79d4fa0

47 files changed

Lines changed: 2282 additions & 2487 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

NOTICE.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,9 @@ Copyright 2005-2013 The Apache Software Foundation
33

44
This product includes software developed at
55
The Apache Software Foundation (http://www.apache.org/).
6+
7+
src/main/resources/contract.txt
8+
This file was downloaded from http://www.ferc.gov/docs-filing/eqr/soft-tools/sample-csv/contract.txt and contains neither copyright notice nor license.
9+
10+
src/main/resources/transaction.txt
11+
This file was downloaded from http://www.ferc.gov/docs-filing/eqr/soft-tools/sample-csv/transaction.txt and contains neither copyright notice nor license.

pom.xml

Lines changed: 37 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ limitations under the License.
2121
<parent>
2222
<groupId>org.apache.commons</groupId>
2323
<artifactId>commons-parent</artifactId>
24-
<version>28</version>
24+
<version>32</version>
2525
</parent>
2626
<groupId>org.apache.commons</groupId>
2727
<artifactId>commons-csv</artifactId>
@@ -50,6 +50,7 @@ CSV files of various types.
5050
<dependency>
5151
<groupId>com.h2database</groupId>
5252
<artifactId>h2</artifactId>
53+
<!-- 1.3.172 requires Java 1.6 -->
5354
<version>1.3.168</version>
5455
<scope>test</scope>
5556
</dependency>
@@ -89,14 +90,22 @@ CSV files of various types.
8990
</developer>
9091
</developers>
9192
<contributors>
93+
<contributor>
94+
<name>Bob Smith</name>
95+
</contributor>
9296
</contributors>
9397

9498
<scm>
9599
<connection>scm:svn:http://svn.apache.org/repos/asf/commons/proper/csv/trunk</connection>
96100
<developerConnection>scm:svn:https://svn.apache.org/repos/asf/commons/proper/csv/trunk</developerConnection>
97-
<url>http://svn.apache.org/repos/asf/commons/proper/csv/trunk</url>
101+
<url>http://svn.apache.org/viewvc/commons/proper/csv/trunk</url>
98102
</scm>
99103

104+
<issueManagement>
105+
<system>jira</system>
106+
<url>http://issues.apache.org/jira/browse/CSV</url>
107+
</issueManagement>
108+
100109
<distributionManagement>
101110
<site>
102111
<id>apache.website</id>
@@ -112,12 +121,17 @@ CSV files of various types.
112121
<commons.componentid>csv</commons.componentid>
113122
<commons.jira.id>CSV</commons.jira.id>
114123
<commons.jira.pid>12313222</commons.jira.pid>
115-
<maven.compile.source>1.7</maven.compile.source>
116-
<maven.compile.target>1.7</maven.compile.target>
124+
<maven.compiler.source>1.7</maven.compiler.source>
125+
<maven.compiler.target>1.7</maven.compiler.target>
117126
<!-- Ensure copies work OK (can be removed later when this is in parent POM) -->
118127
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
119128
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
120129
<commons.encoding>UTF-8</commons.encoding>
130+
<!--
131+
Use 2.9.1 instead of 2.10; 2.10 seems to scan the 'target' dir
132+
and wants license headers in .properties to be the header for Java files.
133+
-->
134+
<checkstyle.version>2.9.1</checkstyle.version>
121135
<checkstyle.header.file>${basedir}/LICENSE-header.txt</checkstyle.header.file>
122136
</properties>
123137

@@ -142,22 +156,31 @@ CSV files of various types.
142156
</excludes>
143157
</configuration>
144158
</plugin>
159+
<!-- Allow checkstyle to be run interactively; keep in sync with report config below -->
160+
<plugin>
161+
<groupId>org.apache.maven.plugins</groupId>
162+
<artifactId>maven-checkstyle-plugin</artifactId>
163+
<version>${checkstyle.version}</version>
164+
<configuration>
165+
<configLocation>${basedir}/checkstyle.xml</configLocation>
166+
<enableRulesSummary>false</enableRulesSummary>
167+
<headerLocation>${checkstyle.header.file}</headerLocation>
168+
</configuration>
169+
</plugin>
145170
</plugins>
146171
</build>
147172

148173
<reporting>
149174
<plugins>
175+
<!-- Keep in sync with build config above -->
150176
<plugin>
151177
<groupId>org.apache.maven.plugins</groupId>
152178
<artifactId>maven-checkstyle-plugin</artifactId>
153-
<!-- Use 2.9.1 instead of 2.10; 2.10 seems to scan the 'target'
154-
dir and wants license headers in .properties to be the header for
155-
Java files. -->
156-
<version>2.9.1</version>
179+
<version>${checkstyle.version}</version>
157180
<configuration>
158181
<configLocation>${basedir}/checkstyle.xml</configLocation>
159182
<enableRulesSummary>false</enableRulesSummary>
160-
<headerFile>${basedir}/LICENSE-header.txt</headerFile>
183+
<headerLocation>${checkstyle.header.file}</headerLocation>
161184
</configuration>
162185
<!-- We need to specify reportSets because 2.9.1 creates two reports -->
163186
<reportSets>
@@ -173,7 +196,7 @@ CSV files of various types.
173196
<artifactId>maven-pmd-plugin</artifactId>
174197
<version>3.0.1</version>
175198
<configuration>
176-
<targetJdk>${maven.compile.target}</targetJdk>
199+
<targetJdk>${maven.compiler.target}</targetJdk>
177200
</configuration>
178201
</plugin>
179202
<plugin>
@@ -193,6 +216,10 @@ CSV files of various types.
193216
</tags>
194217
</configuration>
195218
</plugin>
219+
<!--
220+
NOTE: this requires Maven 3.0.x; when used with Maven 2.2.1, the following error is seen:
221+
Embedded error: Error rendering Maven report: org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory
222+
-->
196223
<plugin>
197224
<groupId>org.codehaus.mojo</groupId>
198225
<artifactId>javancss-maven-plugin</artifactId>

randoop/myclasses.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
org.apache.commons.csv.CSVFormat$CSVFormatBuilder
1+
org.apache.commons.csv.Assertions
22
org.apache.commons.csv.CSVFormat
3-
org.apache.commons.csv.CSVLexer
43
org.apache.commons.csv.CSVParser$1
54
org.apache.commons.csv.CSVParser$2
65
org.apache.commons.csv.CSVParser

src/changes/changes.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@
2020
This file is used by the maven-changes-plugin to generate the release notes.
2121
Useful ways of finding items to add to this file are:
2222
23-
1. Add items when you fix a bug or add a feature (this makes the
23+
1. Add items when you fix a bug or add a feature (this makes the
2424
release process easy :-).
2525
2626
2. Do a JIRA search for tickets closed since the previous release.
2727
2828
3. Use the report generated by the maven-changelog-plugin to see all
29-
SVN commits. Set the project.properties' maven.changelog.range
29+
SVN commits. Set the project.properties' maven.changelog.range
3030
property to the number of days since the last release.
3131
3232
@@ -41,6 +41,6 @@ The <action> type attribute can be add,update,fix,remove.
4141

4242
<release version="1.0" date="TBD" description="First release">
4343
</release>
44-
44+
4545
</body>
4646
</document>
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one or more
3+
* contributor license agreements. See the NOTICE file distributed with
4+
* this work for additional information regarding copyright ownership.
5+
* The ASF licenses this file to You under the Apache License, Version 2.0
6+
* (the "License"); you may not use this file except in compliance with
7+
* the License. You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*/
17+
18+
package org.apache.commons.csv;
19+
20+
/**
21+
* Utility class for input parameter validation
22+
*
23+
* @version $Id$
24+
*/
25+
final class Assertions {
26+
27+
private Assertions() {
28+
// can not be instantiated
29+
}
30+
31+
public static void notNull(Object parameter, String parameterName) {
32+
if (parameter == null) {
33+
throw new IllegalArgumentException("Parameter '" + parameterName + "' must not be null!");
34+
}
35+
}
36+
}

0 commit comments

Comments
 (0)