Buggy code:
public class AddProductInfo { SqlDatabase m_sql_db ; private Map < String , Product > m_map_products = null ; public AddProductInfo ( SqlDatabase sql_db , Map < String , Product > map_products ) { } private String na ( ) { } private int lang_id ( ) { } private String [ ] update_packages_str ( String packages_str , String ean ) { String new_packages_str = "" ; String new_pack_info_str = "" ; String [ ] packages = packages_str . split ( "\n" ) ; if ( packages != null ) { for ( String p : packages ) { if ( ! ( p . isEmpty ( ) ) ) { String [ ] entry = p . split ( "\\|" ) ; if ( ( entry . length ) > 10 ) { String name = entry [ 0 ] ; String eancode = entry [ 9 ] ; if ( ( eancode . equals ( ean ) ) && ( m_map_products . containsKey ( eancode ) ) ) { Product product = m_map_products . get ( eancode ) ; float p_fap = product . fap ; float p_efp = product . efp ; float p_vat = product . vat ; System . out . println ( ( ( ( ( ( ( ( ( ( "match<seq2seq4repair_space>with<seq2seq4repair_space>authors'<seq2seq4repair_space>data:<seq2seq4repair_space>" + ean ) + "<seq2seq4repair_space>|<seq2seq4repair_space>" ) + eancode ) + "<seq2seq4repair_space>-><seq2seq4repair_space>" ) + name ) + "<seq2seq4repair_space>|<seq2seq4repair_space>efp<seq2seq4repair_space>=<seq2seq4repair_space>" ) + p_efp ) + "<seq2seq4repair_space>|<seq2seq4repair_space>fap<seq2seq4repair_space>=<seq2seq4repair_space>" ) + p_fap ) ) ; if ( entry [ 3 ] . isEmpty ( ) ) { if ( p_efp > 0.0F ) entry [ 3 ] = String . format ( "CHF<seq2seq4repair_space>%.2f" , p_efp ) ; else if ( p_fap > 0.0F ) entry [ 3 ] = String . format ( "CHF<seq2seq4repair_space>%.2f" , p_fap ) ; } if ( ( entry [ 5 ] . isEmpty ( ) ) && ( p_fap > 0.0F ) ) entry [ 5 ] = String . format ( "CHF<seq2seq4repair_space>%.2f" , p_fap ) ; if ( ( entry [ 7 ] . isEmpty ( ) ) && ( p_vat > 0.0F ) ) entry [ 7 ] = String . format ( "%.2f" , p_vat ) ; } for ( int i = 0 ; i <= 10 ; ++ i ) { new_packages_str += ( entry [ i ] ) + "|" ; } if ( ( entry . length ) > 11 ) { if ( ! ( entry [ 11 ] . isEmpty ( ) ) ) { new_packages_str += ( entry [ 11 ] ) + "|" ; } } if ( ( entry . length ) > 12 ) { if ( ! ( entry [ 12 ] . isEmpty ( ) ) ) new_packages_str += entry [ 12 ] ; } new_packages_str += "\n" ; } } } packages = packages_str . split ( "\n" ) ; for ( String p : packages ) { if ( ! ( p . isEmpty ( ) ) ) { String [ ] entry = p . split ( "\\|" ) ; if ( ( entry . length ) > 10 ) { String name = entry [ 0 ] ; String entry_8 = "" ; if ( ! ( entry [ 8 ] . isEmpty ( ) ) ) { String [ ] add_info = entry [ 8 ] . split ( "," , ( - 1 ) ) ; for ( String a : add_info ) { a = a . replaceAll ( "\\s+" , "" ) ; if ( ! ( a . isEmpty ( ) ) ) entry_8 += a + ",<seq2seq4repair_space>" ; } if ( ( entry_8 . length ( ) ) > 2 ) entry_8 = entry_8 . substring ( 0 , ( ( entry_8 . length ( ) ) - 2 ) ) ; } <START_BUG> if ( entry_8 . contains ( "SL" ) ) { <END_BUG> if ( ! ( entry [ 3 ] . isEmpty ( ) ) ) { if ( ! ( entry [ 4 ] . isEmpty ( ) ) ) new_pack_info_str += ( ( ( ( ( ( name + ",<seq2seq4repair_space>" ) + ( entry [ 3 ] . replace ( "CHF" , "EFP" ) ) ) + ",<seq2seq4repair_space>" ) + ( entry [ 4 ] . replace ( "CHF" , "PP" ) ) ) + "<seq2seq4repair_space>[" ) + entry_8 ) + "]\n" ; else new_pack_info_str += ( ( ( ( name + ",<seq2seq4repair_space>" ) + ( entry [ 3 ] . replace ( "CHF" , "EFP" ) ) ) + "<seq2seq4repair_space>[" ) + entry_8 ) + "]\n" ; } else if ( ! ( entry [ 5 ] . isEmpty ( ) ) ) { if ( ! ( entry [ 4 ] . isEmpty ( ) ) ) new_pack_info_str += ( ( ( ( ( ( name + ",<seq2seq4repair_space>" ) + ( entry [ 5 ] . replace ( "CHF" , "EFP" ) ) ) + ",<seq2seq4repair_space>" ) + ( entry [ 4 ] . replace ( "CHF" , "PP" ) ) ) + "<seq2seq4repair_space>[" ) + entry_8 ) + "]\n" ; else new_pack_info_str += ( ( ( ( name + ",<seq2seq4repair_space>" ) + ( entry [ 5 ] . replace ( "CHF" , "EFP" ) ) ) + "<seq2seq4repair_space>[" ) + entry_8 ) + "]\n" ; } else { new_pack_info_str += ( ( name + "<seq2seq4repair_space>[" ) + entry_8 ) + "]\n" ; } } else new_pack_info_str += ( ( name + "<seq2seq4repair_space>[" ) + entry_8 ) + "]\n" ; } } } } return new String [ ] { new_packages_str , new_pack_info_str } ; } public void process ( ) { } public void complete ( List < String > list_of_authors ) { } void clean ( List < String > list_of_authors ) { } }

Fix:
if ( ( entry_8 . contains ( "SL" ) ) || ( entry_8 . contains ( "LS" ) ) ) {