Buggy code:
public class SendMail { private String subject ; private String text ; public boolean sendErrorMail ( final String error , final String description ) { subject = ( ( ( Constants . APP_NAME ) + "<seq2seq4repair_space>" ) + ( Constants . APP_VERSION ) ) + "<seq2seq4repair_space>ERROR" ; <START_BUG> text = ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( String . format ( "%-15s<seq2seq4repair_space>%-30s<seq2seq4repair_space>%n" , "APP:" , APP_NAME ) ) + ( String . format ( "%-15s<seq2seq4repair_space>%-30s<seq2seq4repair_space>%n" , "VERSION:" , APP_VERSION ) ) ) + "\n" ) + ( String . format ( "%-15s<seq2seq4repair_space>%-30s<seq2seq4repair_space>%n" , "USER:" , USERNAME ) ) ) + ( String . format ( "%-15s<seq2seq4repair_space>%-30s<seq2seq4repair_space>%n" , "ONLINE:" , OFFLINEMODE ) ) ) + ( String . format ( "%-15s<seq2seq4repair_space>%-30s<seq2seq4repair_space>%n" , "STARTED:" , STARTED ) ) ) + "<seq2seq4repair_space>--------------------------------------------------\n" ) + ( String . format ( "%-15s<seq2seq4repair_space>%-30s<seq2seq4repair_space>%n" , "OS<seq2seq4repair_space>NAME:" , OSInfo . getName ( ) ) ) ) + ( String . format ( "%-15s<seq2seq4repair_space>%-30s<seq2seq4repair_space>%n" , "OS<seq2seq4repair_space>VER:" , OSInfo . getVersion ( ) ) ) ) + ( String . format ( "%-15s<seq2seq4repair_space>%-30s<seq2seq4repair_space>%n" , "OS<seq2seq4repair_space>ARCH:" , OSInfo . getArchitecture ( ) ) ) ) + "<seq2seq4repair_space>--------------------------------------------------\n" ) + error ) + "<seq2seq4repair_space>--------------------------------------------------\n" ) + description ) + "\n" ) + "<seq2seq4repair_space>==================================================\n" ; <END_BUG> return new MailClient ( MailClient . ERROR ) . send ( subject , text ) ; } }

Fix:
text = ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( String . format ( "%-15s<seq2seq4repair_space>%-30s<seq2seq4repair_space>%n" , "APP:" , APP_NAME ) ) + ( String . format ( "%-15s<seq2seq4repair_space>%-30s<seq2seq4repair_space>%n" , "VERSION:" , APP_VERSION ) ) ) + "\n" ) + ( String . format ( "%-15s<seq2seq4repair_space>%-30s<seq2seq4repair_space>%n" , "USER:" , USERNAME ) ) ) + ( String . format ( "%-15s<seq2seq4repair_space>%-30s<seq2seq4repair_space>%n" , "ONLINE:" , ( ! ( UserDetails . OFFLINEMODE ) ) ) ) ) + ( String . format ( "%-15s<seq2seq4repair_space>%-30s<seq2seq4repair_space>%n" , "STARTED:" , STARTED ) ) ) + "<seq2seq4repair_space>--------------------------------------------------\n" ) + ( String . format ( "%-15s<seq2seq4repair_space>%-30s<seq2seq4repair_space>%n" , "OS<seq2seq4repair_space>NAME:" , OSInfo . getName ( ) ) ) ) + ( String . format ( "%-15s<seq2seq4repair_space>%-30s<seq2seq4repair_space>%n" , "OS<seq2seq4repair_space>VER:" , OSInfo . getVersion ( ) ) ) ) + ( String . format ( "%-15s<seq2seq4repair_space>%-30s<seq2seq4repair_space>%n" , "OS<seq2seq4repair_space>ARCH:" , OSInfo . getArchitecture ( ) ) ) ) + "<seq2seq4repair_space>--------------------------------------------------\n" ) + error ) + "<seq2seq4repair_space>--------------------------------------------------\n" ) + description ) + "\n" ) + "<seq2seq4repair_space>==================================================\n" ;