a2ba9b5288
Fix SpotBugs Errors - Error: Medium: org.apache.commons.csv.CSVParser.getHeaderNames() may expose internal representation by returning CSVParser.headerNames [org.apache.commons.csv.CSVParser] At CSVParser.java:[line 599] EI_EXPOSE_REP - Error: Medium: new org.apache.commons.csv.CSVParser(Reader, CSVFormat, long, long) may expose internal representation by storing an externally mutable object into CSVParser.format [org.apache.commons.csv.CSVParser] At CSVParser.java:[line 433] EI_EXPOSE_REP2 - Error: Medium: new org.apache.commons.csv.CSVParser(Reader, CSVFormat, long, long) may expose internal representation by storing an externally mutable object into CSVParser.headerMap [org.apache.commons.csv.CSVParser] At CSVParser.java:[line 437] EI_EXPOSE_REP2 - Error: Medium: new org.apache.commons.csv.CSVParser(Reader, CSVFormat, long, long) may expose internal representation by storing an externally mutable object into CSVParser.headerNames [org.apache.commons.csv.CSVParser] At CSVParser.java:[line 438] EI_EXPOSE_REP2 - Error: Medium: new org.apache.commons.csv.CSVPrinter(Appendable, CSVFormat) may expose internal representation by storing an externally mutable object into CSVPrinter.format [org.apache.commons.csv.CSVPrinter] At CSVPrinter.java:[line 100] EI_EXPOSE_REP2 Suppresss SpotBugs Errors: - Error: Medium: org.apache.commons.csv.CSVFormat$Predefined.getFormat() may expose internal representation by returning CSVFormat$Predefined.format [org.apache.commons.csv.CSVFormat$Predefined] At CSVFormat.java:[line 758] EI_EXPOSE_REP - Error: Medium: org.apache.commons.csv.CSVParser.iterator() may expose internal representation by returning CSVParser.csvRecordIterator [org.apache.commons.csv.CSVParser] At CSVParser.java:[line 690] EI_EXPOSE_REP - Error: Medium: org.apache.commons.csv.CSVRecord.getParser() may expose internal representation by returning CSVRecord.parser [org.apache.commons.csv.CSVRecord] At CSVRecord.java:[line 171] EI_EXPOSE_REP |
||
---|---|---|
.github | ||
src | ||
.gitignore | ||
.travis.yml | ||
BENCHMARK.md | ||
CODE_OF_CONDUCT.md | ||
CONTRIBUTING.md | ||
LICENSE.txt | ||
NOTICE.txt | ||
README.md | ||
RELEASE-NOTES.txt | ||
SECURITY.md | ||
benchmark-prereq.sh | ||
pom.xml |
README.md
Apache Commons CSV
The Apache Commons CSV library provides a simple interface for reading and writing CSV files of various types.
Documentation
More information can be found on the Apache Commons CSV homepage. The Javadoc can be browsed. Questions related to the usage of Apache Commons CSV should be posted to the user mailing list.
Where can I get the latest release?
You can download source and binaries from our download page.
Alternatively you can pull it from the central Maven repositories:
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-csv</artifactId>
<version>1.8</version>
</dependency>
Contributing
We accept Pull Requests via GitHub. The developer mailing list is the main channel of communication for contributors. There are some guidelines which will make applying PRs easier for us:
- No tabs! Please use spaces for indentation.
- Respect the code style.
- Create minimal diffs - disable on save actions like reformat source code or organize imports. If you feel the source code should be reformatted create a separate PR for this change.
- Provide JUnit tests for your changes and make sure your changes don't break any existing tests by running
mvn clean test
.
If you plan to contribute on a regular basis, please consider filing a contributor license agreement. You can learn more about contributing via GitHub in our contribution guidelines.
License
This code is under the Apache License v2.
See the NOTICE.txt
file for required notices and attributions.
Donations
You like Apache Commons CSV? Then donate back to the ASF to support the development.
Additional Resources
- Apache Commons Homepage
- Apache Issue Tracker (JIRA)
- Apache Commons Twitter Account
#apache-commons
IRC channel onirc.freenode.org