Buggy code:
public class BatchClient { private static final Logger LOG = LoggerFactory . getLogger ( BatchClient . class ) ; public static void main ( String [ ] args ) { Batch batch = new Batch ( ) ; batch . setOperations ( new ObjectFactory ( ) . createBatchOperations ( ) ) ; { Operation operation = new Operation ( ) ; operation . setId ( UUID . randomUUID ( ) . toString ( ) ) ; operation . setMethod ( "GET" ) ; operation . setUrl ( "http:////api.spreadshirt.net//api//v1//serverTime" ) ; batch . getOperations ( ) . getOperations ( ) . add ( operation ) ; } { Operation operation = new Operation ( ) ; operation . setId ( UUID . randomUUID ( ) . toString ( ) ) ; operation . setMethod ( "FOOBAR" ) ; operation . setUrl ( "http:////api.spreadshirt.net//api//v1//serverTime" ) ; batch . getOperations ( ) . getOperations ( ) . add ( operation ) ; } { Operation operation = new Operation ( ) ; operation . setId ( UUID . randomUUID ( ) . toString ( ) ) ; operation . setMethod ( "GET" ) ; operation . setUrl ( "http:////api.spreadshirt.net//api//v1//currencies//1?mediaType=json" ) ; batch . getOperations ( ) . getOperations ( ) . add ( operation ) ; } { Operation operation = new Operation ( ) ; operation . setId ( UUID . randomUUID ( ) . toString ( ) ) ; operation . setMethod ( "GET" ) ; operation . setUrl ( "http:////api.spreadshirt.net//api//v1//currencies//1?mediaType=xml" ) ; batch . getOperations ( ) . getOperations ( ) . add ( operation ) ; } { Operation operation = new Operation ( ) ; operation . setId ( UUID . randomUUID ( ) . toString ( ) ) ; operation . setMethod ( "GET" ) ; operation . setUrl ( "http:////api.spreadshirt.net//api//v1//currencies//nonExisting" ) ; batch . getOperations ( ) . getOperations ( ) . add ( operation ) ; } SubmitBatchResponse response = new BatchService ( "http:////localhost:9080//batch-api" ) . submitBatch ( new SubmitBatchRequest ( batch ) ) ; if ( ( response . getStatusCode ( ) ) == 200 ) { for ( Operation operation : response . getResponse ( ) . getOperations ( ) . getOperations ( ) ) { Map < String , String > headerMap = new HashMap < String , String > ( ) ; if ( ( ( operation . getHeaders ( ) ) != null ) && ( ( operation . getHeaders ( ) . getHeaders ( ) ) != null ) ) { for ( Header header : operation . getHeaders ( ) . getHeaders ( ) ) { headerMap . put ( header . getName ( ) , header . getValue ( ) ) ; } } <START_BUG> BatchClient . LOG . info ( ( "\n" + ( ( ( ( "Executed<seq2seq4repair_space>=<seq2seq4repair_space>{}\n" + "Code<seq2seq4repair_space>=<seq2seq4repair_space>{}\n" ) + "Reason<seq2seq4repair_space>=<seq2seq4repair_space>{}\n" ) + "Content-Type<seq2seq4repair_space>=<seq2seq4repair_space>{}\n" ) + "Body<seq2seq4repair_space>=<seq2seq4repair_space>{}" ) ) , new Object [ ] { operation . isExecuted ( ) , operation . getStatusLine ( ) . getStatusCode ( ) , operation . getStatusLine ( ) . getReasonPhrase ( ) , headerMap . get ( "Content-Type" ) , operation . getBody ( ) } ) ; <END_BUG> } } } No newline ; at end ; of file ; }

Fix:
BatchClient . LOG . info ( ( "\n" + ( ( ( ( "Executed<seq2seq4repair_space>=<seq2seq4repair_space>{}\n" + "Code<seq2seq4repair_space>=<seq2seq4repair_space>{}\n" ) + "Reason<seq2seq4repair_space>=<seq2seq4repair_space>{}\n" ) + "Content-Type<seq2seq4repair_space>=<seq2seq4repair_space>{}\n" ) + "Body<seq2seq4repair_space>=<seq2seq4repair_space>{}" ) ) , new Object [ ] { operation . getExecuted ( ) , operation . getStatusLine ( ) . getStatusCode ( ) , operation . getStatusLine ( ) . getReasonPhrase ( ) , headerMap . get ( "Content-Type" ) , operation . getBody ( ) } ) ;