Buggy code:
case MISSING_REQUIRED_FIELDS : checkPointName = checkPointName ( name , MISSING_REQUIRED_FIELDS ) ; fieldName = ex . getField ( ) ; report . addFileInfo ( filenameInfo , ERROR , new mobi . chouette . exchange . report . FileError ( CODE . INVALID_FORMAT , ( ( ( ( ( ( "The<seq2seq4repair_space>column<seq2seq4repair_space>\"" + fieldName ) + "\"<seq2seq4repair_space>of<seq2seq4repair_space>file<seq2seq4repair_space>\"" ) + filenameInfo ) + "\"<seq2seq4repair_space>must<seq2seq4repair_space>be<seq2seq4repair_space>provided<seq2seq4repair_space>(rule<seq2seq4repair_space>" ) + checkPointName ) + ")" ) ) ) ; validationReport . addDetail ( checkPointName , new Location ( filenameInfo , ex . getId ( ) , 0 ) , fieldName , NOK ) ; throw new Exception ( ( ( ( ( "The<seq2seq4repair_space>column<seq2seq4repair_space>\"" + fieldName ) + "\"<seq2seq4repair_space>of<seq2seq4repair_space>file<seq2seq4repair_space>\"" ) + filenameInfo ) + "\"<seq2seq4repair_space>must<seq2seq4repair_space>be<seq2seq4repair_space>provided" ) ) ; case MISSING_REQUIRED_FIELDS2 : checkPointName = checkPointName ( name , MISSING_REQUIRED_FIELDS2 ) ; fieldName = ex . getField ( ) ; fieldName2 = fieldName . replaceFirst ( "long" , "short" ) ; report . addFileInfo ( filenameInfo , ERROR , new mobi . chouette . exchange . report . FileError ( CODE . INVALID_FORMAT , ( ( ( ( ( ( "One<seq2seq4repair_space>of<seq2seq4repair_space>the<seq2seq4repair_space>fields<seq2seq4repair_space>\"" + fieldName ) + "\"<seq2seq4repair_space>or<seq2seq4repair_space>\"" ) + fieldName2 ) + "\"<seq2seq4repair_space>must<seq2seq4repair_space>be<seq2seq4repair_space>provided<seq2seq4repair_space>(rule<seq2seq4repair_space>" ) + checkPointName ) + ")" ) ) ) ; validationReport . addDetail ( checkPointName , new Location ( filenameInfo , ex . getId ( ) , 0 ) , ( ( fieldName + "," ) + fieldName2 ) , NOK ) ; break ; case MISSING_OPTIONAL_FIELD : checkPointName = checkPointName ( name , MISSING_OPTIONAL_FIELD ) ; report . addFileInfo ( filenameInfo , IGNORED , new mobi . chouette . exchange . report . FileError ( CODE . INVALID_FORMAT , ( ( "Optional<seq2seq4repair_space>field<seq2seq4repair_space>is<seq2seq4repair_space>not<seq2seq4repair_space>present<seq2seq4repair_space>(rule<seq2seq4repair_space>" + checkPointName ) + ")" ) ) ) ; validationReport . addDetail ( checkPointName , new Location ( filenameInfo , ex . getId ( ) , 0 ) , ex . getField ( ) , NOK ) ; break ; case EXTRA_HEADER_FIELD : checkPointName = checkPointName ( name , EXTRA_HEADER_FIELD ) ; report . addFileInfo ( filenameInfo , IGNORED , new mobi . chouette . exchange . report . FileError ( CODE . INVALID_FORMAT , ( ( "Extra<seq2seq4repair_space>fields<seq2seq4repair_space>are<seq2seq4repair_space>provided<seq2seq4repair_space>(rule<seq2seq4repair_space>" + checkPointName ) + ")" ) ) ) ; validationReport . addDetail ( checkPointName , new Location ( filenameInfo , ex . getId ( ) , 0 ) , ex . getField ( ) , NOK ) ; break ; case MISSING_REQUIRED_VALUES : checkPointName = checkPointName ( name , MISSING_REQUIRED_VALUES ) ; fieldName = ex . getField ( ) ; report . addFileInfo ( filenameInfo , ERROR , new mobi . chouette . exchange . report . FileError ( CODE . INVALID_FORMAT , ( ( ( ( "The<seq2seq4repair_space>value<seq2seq4repair_space>\"" + fieldName ) + "\"<seq2seq4repair_space>must<seq2seq4repair_space>be<seq2seq4repair_space>provided<seq2seq4repair_space>(rule<seq2seq4repair_space>" ) + checkPointName ) + ")" ) ) ) ; validationReport . addDetail ( checkPointName , new Location ( filenameInfo , ex . getId ( ) , 0 ) , fieldName , NOK ) ; break ; case MISSING_FIELD : checkPointName = checkPointName ( name , MISSING_FIELD ) ; fieldName = ex . getField ( ) ; report . addFileInfo ( filenameInfo , ERROR , new mobi . chouette . exchange . report . FileError ( CODE . INVALID_FORMAT , ( ( ( ( ( ( ( ( "The<seq2seq4repair_space>file<seq2seq4repair_space>\"" + filenameInfo ) + "\"<seq2seq4repair_space>must<seq2seq4repair_space>provide<seq2seq4repair_space>a<seq2seq4repair_space>non<seq2seq4repair_space>empty<seq2seq4repair_space>\"" ) + name ) + "_id\"<seq2seq4repair_space>for<seq2seq4repair_space>each<seq2seq4repair_space>" ) + name ) + "<seq2seq4repair_space>(rule<seq2seq4repair_space>" ) + checkPointName ) + ")" ) ) ) ; validationReport . addDetail ( checkPointName , new Location ( filenameInfo , ex . getId ( ) , 0 ) , fieldName , NOK ) ; throw new Exception ( ( ( ( ( ( "The<seq2seq4repair_space>file<seq2seq4repair_space>\"" + filenameInfo ) + "\"<seq2seq4repair_space>must<seq2seq4repair_space>provide<seq2seq4repair_space>a<seq2seq4repair_space>non<seq2seq4repair_space>empty<seq2seq4repair_space>\"" ) + fieldName ) + "\"<seq2seq4repair_space>for<seq2seq4repair_space>each<seq2seq4repair_space>" ) + name ) ) ; case MISSING_REQUIRED_VALUES2 : checkPointName = checkPointName ( name , MISSING_REQUIRED_VALUES2 ) ; fieldName = ex . getField ( ) ; fieldName2 = fieldName . replaceFirst ( "long" , "short" ) ; <START_BUG> report . addFileInfo ( filenameInfo , ERROR , new mobi . chouette . exchange . report . FileError ( CODE . INVALID_FORMAT , ( ( ( ( ( ( "One<seq2seq4repair_space>of<seq2seq4repair_space>the<seq2seq4repair_space>valuess<seq2seq4repair_space>\"" + fieldName ) + "\"<seq2seq4repair_space>or<seq2seq4repair_space>\"" ) + fieldName2 ) + "\"<seq2seq4repair_space>must<seq2seq4repair_space>be<seq2seq4repair_space>provided<seq2seq4repair_space>(rule<seq2seq4repair_space>" ) + checkPointName ) + ")" ) ) ) ; <END_BUG> validationReport . addDetail ( checkPointName , new Location ( filenameInfo , ex . getId ( ) , 0 ) , ( ( fieldName + "," ) + fieldName2 ) , NOK ) ; break ; case DUPLICATE_DEFAULT_KEY_FIELD : checkPointName = checkPointName ( name , DUPLICATE_DEFAULT_KEY_FIELD ) ; report . addFileInfo ( filenameInfo , ERROR , new mobi . chouette . exchange . report . FileError ( CODE . INVALID_FORMAT , ( ( "At<seq2seq4repair_space>most<seq2seq4repair_space>only<seq2seq4repair_space>one<seq2seq4repair_space>Agency<seq2seq4repair_space>can<seq2seq4repair_space>have<seq2seq4repair_space>default<seq2seq4repair_space>value<seq2seq4repair_space>\"agency_id\"<seq2seq4repair_space>(rule<seq2seq4repair_space>" + checkPointName ) + ")" ) ) ) ; validationReport . addDetail ( checkPointName , new Location ( filenameInfo , ex . getId ( ) , 0 ) , ex . getField ( ) , NOK ) ; throw new Exception ( "At<seq2seq4repair_space>most<seq2seq4repair_space>only<seq2seq4repair_space>one<seq2seq4repair_space>Agency<seq2seq4repair_space>can<seq2seq4repair_space>have<seq2seq4repair_space>default<seq2seq4repair_space>value<seq2seq4repair_space>\"agency_id\"" ) ; case DEFAULT_VALUE : checkPointName = checkPointName ( name , DEFAULT_VALUE ) ; fieldName = ex . getField ( ) ; report . addFileInfo ( filenameInfo , IGNORED , new mobi . chouette . exchange . report . FileError ( CODE . INVALID_FORMAT , ( ( "No<seq2seq4repair_space>default<seq2seq4repair_space>ids<seq2seq4repair_space>for<seq2seq4repair_space>agencies<seq2seq4repair_space>(rule<seq2seq4repair_space>" + checkPointName ) + ")" ) ) ) ; validationReport . addDetail ( checkPointName , new Location ( filenameInfo , ex . getId ( ) , 0 ) , fieldName , NOK ) ; break ; case MISSING_ARRIVAL_TIME : checkPointName = checkPointName ( name , MISSING_ARRIVAL_TIME ) ; fieldName = ex . getField ( ) ; report . addFileInfo ( filenameInfo , IGNORED , new mobi . chouette . exchange . report . FileError ( CODE . INVALID_FORMAT , ( ( ( ( "Missing<seq2seq4repair_space>\"" + fieldName ) + "\"<seq2seq4repair_space>(rule<seq2seq4repair_space>" ) + checkPointName ) + ")" ) ) ) ; validationReport . addDetail ( checkPointName , new Location ( filenameInfo , ex . getId ( ) , 0 ) , fieldName , NOK ) ; break ;

Fix:
report . addFileInfo ( filenameInfo , ERROR , new mobi . chouette . exchange . report . FileError ( CODE . INVALID_FORMAT , ( ( ( ( ( ( "One<seq2seq4repair_space>of<seq2seq4repair_space>the<seq2seq4repair_space>values<seq2seq4repair_space>\"" + fieldName ) + "\"<seq2seq4repair_space>or<seq2seq4repair_space>\"" ) + fieldName2 ) + "\"<seq2seq4repair_space>must<seq2seq4repair_space>be<seq2seq4repair_space>provided<seq2seq4repair_space>(rule<seq2seq4repair_space>" ) + checkPointName ) + ")" ) ) ) ;