@@ -371,7 +371,7 @@ public void testShouldThrowWhenSetIndexOnWrongColumnType() {
371371
372372 public void testColumnName () {
373373 Table t = new Table ();
374- try { t .addColumn (STRING , "I am 64 characters.............................................." ); fail ("Only 63 characters supported" ); } catch (IllegalArgumentException e ) { }
374+ try { t .addColumn (STRING , "I am 64 characters.............................................." ); fail ("Only 63 characters supported" ); } catch (IllegalArgumentException ignored ) { }
375375 t .addColumn (STRING , "I am 63 characters............................................." );
376376 }
377377
@@ -487,11 +487,9 @@ public void testConvertToNullable() {
487487 table .addEmptyRow ();
488488 if (columnType == BINARY ) {
489489 table .setBinaryByteArray (colIndex , 1 , null );
490- }
491- else if (columnType == STRING ) {
490+ } else if (columnType == STRING ) {
492491 table .setString (colIndex , 1 , null );
493- }
494- else {
492+ } else {
495493 table .getCheckedRow (1 ).setNull (colIndex );
496494 }
497495
@@ -513,23 +511,19 @@ else if (columnType == STRING) {
513511 table .addEmptyRow ();
514512 if (columnType == BINARY ) {
515513 table .setBinaryByteArray (colIndex , 0 , null );
516- }
517- else if (columnType == STRING ) {
514+ } else if (columnType == STRING ) {
518515 table .setString (colIndex , 0 , null );
519- }
520- else {
516+ } else {
521517 table .getCheckedRow (0 ).setNull (colIndex );
522518 }
523519
524520 assertEquals (2 , table .size ());
525521
526522 if (columnType == BINARY ) {
527523 assertNull (table .getBinaryByteArray (colIndex , 1 ));
528- }
529- else if (columnType == STRING ) {
524+ } else if (columnType == STRING ) {
530525 assertNull (table .getString (colIndex , 1 ));
531- }
532- else {
526+ } else {
533527 assertTrue (table .getUncheckedRow (1 ).isNull (colIndex ));
534528 }
535529 }
@@ -576,11 +570,9 @@ public void testConvertToNotNullable() {
576570 table .addEmptyRow ();
577571 if (columnType == BINARY ) {
578572 table .setBinaryByteArray (colIndex , 1 , null );
579- }
580- else if (columnType == STRING ) {
573+ } else if (columnType == STRING ) {
581574 table .setString (colIndex , 1 , null );
582- }
583- else {
575+ } else {
584576 table .getCheckedRow (1 ).setNull (colIndex );
585577 }
586578
@@ -602,11 +594,9 @@ else if (columnType == STRING) {
602594 try {
603595 if (columnType == BINARY ) {
604596 table .setBinaryByteArray (colIndex , 0 , null );
605- }
606- else if (columnType == STRING ) {
597+ } else if (columnType == STRING ) {
607598 table .setString (colIndex , 0 , null );
608- }
609- else {
599+ } else {
610600 table .getCheckedRow (0 ).setNull (colIndex );
611601 }
612602 if (!nullable ) {
@@ -619,12 +609,10 @@ else if (columnType == STRING) {
619609
620610 if (columnType == BINARY ) {
621611 assertNotNull (table .getBinaryByteArray (colIndex , 1 ));
622- }
623- else if (columnType == STRING ) {
612+ } else if (columnType == STRING ) {
624613 assertNotNull (table .getString (colIndex , 1 ));
625614 assertEquals ("" , table .getString (colIndex , 1 ));
626- }
627- else {
615+ } else {
628616 assertFalse (table .getUncheckedRow (1 ).isNull (colIndex ));
629617 switch (columnType ) {
630618 case BOOLEAN :
0 commit comments