Skip to content

Commit cf6a90d

Browse files
committed
Use longer lines
1 parent b62ddc5 commit cf6a90d

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

src/main/java/org/apache/commons/csv/CSVRecord.java

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -125,20 +125,20 @@ public String get(final int i) {
125125
public String get(final String name) {
126126
final Map<String, Integer> headerMap = getHeaderMapRaw();
127127
if (headerMap == null) {
128-
throw new IllegalStateException(
129-
"No header mapping was specified, the record values can't be accessed by name");
128+
throw new IllegalStateException("No header mapping was specified, the record values can't be accessed by name");
130129
}
131130
final Integer index = headerMap.get(name);
132131
if (index == null) {
133-
throw new IllegalArgumentException(String.format("Mapping for %s not found, expected one of %s", name,
134-
headerMap.keySet()));
132+
throw new IllegalArgumentException(String.format("Mapping for %s not found, expected one of %s", name, headerMap.keySet()));
135133
}
136134
try {
137-
return values[index.intValue()]; // Explicit (un)boxing is intentional
135+
return values[index.intValue()]; // Explicit (un)boxing is intentional
138136
} catch (final ArrayIndexOutOfBoundsException e) {
139-
throw new IllegalArgumentException(String.format(
140-
"Index for header '%s' is %d but CSVRecord only has %d values!", name, index,
141-
Integer.valueOf(values.length))); // Explicit (un)boxing is intentional
137+
throw new IllegalArgumentException(
138+
String.format("Index for header '%s' is %d but CSVRecord only has %d values!", name, index, Integer.valueOf(values.length))); // Explicit
139+
// (un)boxing
140+
// is
141+
// intentional
142142
}
143143
}
144144

@@ -354,8 +354,7 @@ public Map<String, String> toMap() {
354354
*/
355355
@Override
356356
public String toString() {
357-
return "CSVRecord [comment='" + comment + "', recordNumber=" + recordNumber + ", values=" +
358-
Arrays.toString(values) + "]";
357+
return "CSVRecord [comment='" + comment + "', recordNumber=" + recordNumber + ", values=" + Arrays.toString(values) + "]";
359358
}
360359

361360
/**

0 commit comments

Comments
 (0)