@@ -412,84 +412,59 @@ public int hashCode()
412412 }
413413
414414 @ Override
415- public boolean equals (final Object obj )
416- {
417- if (this == obj )
418- {
415+ public boolean equals (final Object obj ) {
416+ if (this == obj ) {
419417 return true ;
420418 }
421- if (obj == null )
422- {
419+ if (obj == null ) {
423420 return false ;
424421 }
425- if (getClass () != obj .getClass ())
426- {
422+ if (getClass () != obj .getClass ()) {
427423 return false ;
428424 }
429425
430426 final CSVFormat other = (CSVFormat ) obj ;
431- if (delimiter != other .delimiter )
432- {
427+ if (delimiter != other .delimiter ) {
433428 return false ;
434429 }
435- if (quotePolicy != other .quotePolicy )
436- {
430+ if (quotePolicy != other .quotePolicy ) {
437431 return false ;
438432 }
439- if (quoteChar == null )
440- {
441- if (other .quoteChar != null )
442- {
433+ if (quoteChar == null ) {
434+ if (other .quoteChar != null ) {
443435 return false ;
444436 }
445- }
446- else if (!quoteChar .equals (other .quoteChar ))
447- {
437+ } else if (!quoteChar .equals (other .quoteChar )) {
448438 return false ;
449439 }
450- if (commentStart == null )
451- {
452- if (other .commentStart != null )
453- {
440+ if (commentStart == null ) {
441+ if (other .commentStart != null ) {
454442 return false ;
455443 }
456- }
457- else if (!commentStart .equals (other .commentStart ))
458- {
444+ } else if (!commentStart .equals (other .commentStart )) {
459445 return false ;
460446 }
461- if (escape == null )
462- {
463- if (other .escape != null )
464- {
447+ if (escape == null ) {
448+ if (other .escape != null ) {
465449 return false ;
466450 }
467- }
468- else if (!escape .equals (other .escape ))
469- {
451+ } else if (!escape .equals (other .escape )) {
470452 return false ;
471453 }
472- if (!Arrays .equals (header , other .header ))
473- {
454+ if (!Arrays .equals (header , other .header )) {
474455 return false ;
475456 }
476- if (ignoreSurroundingSpaces != other .ignoreSurroundingSpaces )
477- {
457+ if (ignoreSurroundingSpaces != other .ignoreSurroundingSpaces ) {
478458 return false ;
479459 }
480- if (ignoreEmptyLines != other .ignoreEmptyLines )
481- {
460+ if (ignoreEmptyLines != other .ignoreEmptyLines ) {
482461 return false ;
483462 }
484- if (recordSeparator == null )
485- {
486- if (other .recordSeparator != null )
487- {
463+ if (recordSeparator == null ) {
464+ if (other .recordSeparator != null ) {
488465 return false ;
489466 }
490- }
491- else if (!recordSeparator .equals (other .recordSeparator ))
492- {
467+ } else if (!recordSeparator .equals (other .recordSeparator )) {
493468 return false ;
494469 }
495470 return true ;
0 commit comments