From 20fe471d408d08050d3a9f4618446a3e88fc5417 Mon Sep 17 00:00:00 2001 From: Benedikt Ritter Date: Wed, 20 Mar 2013 12:42:37 +0000 Subject: [PATCH] Format lines that are longer than 120 characters git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1458803 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/java/org/apache/commons/csv/CSVRecord.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/apache/commons/csv/CSVRecord.java b/src/main/java/org/apache/commons/csv/CSVRecord.java index 016eaea1..61ae4c1a 100644 --- a/src/main/java/org/apache/commons/csv/CSVRecord.java +++ b/src/main/java/org/apache/commons/csv/CSVRecord.java @@ -45,7 +45,8 @@ public class CSVRecord implements Serializable, Iterable { /** The record number. */ private final long recordNumber; - CSVRecord(final String[] values, final Map mapping, final String comment, final long recordNumber) { + CSVRecord(final String[] values, final Map mapping, + final String comment, final long recordNumber) { this.recordNumber = recordNumber; this.values = values != null ? values : EMPTY_STRING_ARRAY; this.mapping = mapping; @@ -73,7 +74,8 @@ public class CSVRecord implements Serializable, Iterable { */ public String get(final String name) { if (mapping == null) { - throw new IllegalStateException("No header mapping was specified, the record values can't be accessed by name"); + throw new IllegalStateException( + "No header mapping was specified, the record values can't be accessed by name"); } final Integer index = mapping.get(name); return index != null ? values[index.intValue()] : null;