@@ -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