Buggy code:
public class ImportHelper { private Context mContext ; private OnImportExportListener mOnImportExportListener ; public ImportHelper ( Context context ) { } public void setOnImportExportListener ( OnImportExportListener l ) { } @ SuppressLint ( "SimpleDateFormat" ) public String [ ] queryImportFiles ( ) { } public void importCallInfo ( String file ) { try { FileInputStream fis = new FileInputStream ( file ) ; XmlPullParserFactory factory = XmlPullParserFactory . newInstance ( ) ; XmlPullParser parser = factory . newPullParser ( ) ; parser . setInput ( fis , "utf-8" ) ; int eventType = parser . getEventType ( ) ; ImportHelper . ContactInfo info = null ; String tagName = null ; String text = null ; ImportHelper . RecordInfo recordInfo = null ; ArrayList < ImportHelper . RecordInfo > recordList = new ArrayList < ImportHelper . RecordInfo > ( ) ; while ( eventType != ( XmlPullParser . END_DOCUMENT ) ) { if ( eventType == ( XmlPullParser . START_DOCUMENT ) ) { Log . d ( TAG , "Start<seq2seq4repair_space>Document" ) ; } else if ( eventType == ( XmlPullParser . START_TAG ) ) { tagName = parser . getName ( ) ; parser . next ( ) ; text = parser . getText ( ) ; if ( "count" . equals ( tagName ) ) { int count = parseInt ( text ) ; if ( ( mOnImportExportListener ) != null ) { mOnImportExportListener . onStart ( count ) ; } } else if ( "contact" . equalsIgnoreCase ( tagName ) ) { info = new ImportHelper . ContactInfo ( ) ; recordList . clear ( ) ; } else if ( "contact_name" . equalsIgnoreCase ( tagName ) ) { info . name = text ; } else if ( "contact_sex" . equalsIgnoreCase ( tagName ) ) { info . sex = parseInt ( text ) ; } else if ( "contact_age" . equalsIgnoreCase ( tagName ) ) { info . age = parseInt ( text ) ; } else if ( "contact_address" . equalsIgnoreCase ( tagName ) ) { info . address = text ; } else if ( "contact_number" . equalsIgnoreCase ( tagName ) ) { info . number = text ; } else if ( "contact_call_log_count" . equalsIgnoreCase ( tagName ) ) { info . calllogcount = parseInt ( text ) ; } else if ( "contact_allow_record" . equalsIgnoreCase ( tagName ) ) { info . allowrecord = parseInt ( text ) ; } else if ( "contact_state" . equalsIgnoreCase ( tagName ) ) { info . callstate = text ; } else if ( "contact_update" . equalsIgnoreCase ( tagName ) ) { <START_BUG> info . update = parseInt ( text ) ; <END_BUG> } else if ( "contact_allow_modify" . equalsIgnoreCase ( tagName ) ) { info . allowmodify = parseInt ( text ) ; } else if ( "foo" . equalsIgnoreCase ( tagName ) ) { info . foo = text ; } else if ( "record" . equalsIgnoreCase ( tagName ) ) { recordInfo = new ImportHelper . RecordInfo ( ) ; } else if ( "record_name" . equalsIgnoreCase ( tagName ) ) { recordInfo . recordname = text ; } else if ( "record_file" . equalsIgnoreCase ( tagName ) ) { recordInfo . recordfile = text ; } else if ( "record_number" . equalsIgnoreCase ( tagName ) ) { recordInfo . recordnumber = text ; } else if ( "record_flag" . equalsIgnoreCase ( tagName ) ) { recordInfo . recordflag = parseInt ( text ) ; } else if ( "record_size" . equalsIgnoreCase ( tagName ) ) { recordInfo . recordsize = parseLong ( text ) ; } else if ( "record_ring" . equalsIgnoreCase ( tagName ) ) { recordInfo . recordring = parseLong ( text ) ; } else if ( "record_start" . equalsIgnoreCase ( tagName ) ) { recordInfo . recordstart = parseLong ( text ) ; } else if ( "record_end" . equalsIgnoreCase ( tagName ) ) { recordInfo . recordend = parseLong ( text ) ; } else if ( "foo" . equalsIgnoreCase ( tagName ) ) { recordInfo . foo = text ; } } else if ( eventType == ( XmlPullParser . END_TAG ) ) { tagName = parser . getName ( ) ; if ( "record" . equalsIgnoreCase ( tagName ) ) { recordList . add ( recordInfo ) ; } else if ( "contact" . equalsIgnoreCase ( tagName ) ) { int _id = addOrUpdateContactInfo ( info ) ; Log . d ( TAG , ( "_id<seq2seq4repair_space>:<seq2seq4repair_space>" + _id ) ) ; addOrThrowRecordInfo ( _id , recordList ) ; if ( ( mOnImportExportListener ) != null ) { String statusText = info . name ; if ( TextUtils . isEmpty ( statusText ) ) { statusText = info . number ; } mOnImportExportListener . onProcessing ( statusText ) ; try { Thread . sleep ( 50 ) ; } catch ( InterruptedException e ) { e . printStackTrace ( ) ; } } } } eventType = parser . next ( ) ; } Log . d ( TAG , "End<seq2seq4repair_space>Document" ) ; if ( ( mOnImportExportListener ) != null ) { mOnImportExportListener . onEnd ( ) ; } } catch ( XmlPullParserException e ) { } catch ( Exception e ) { } } private int parseInt ( String text ) { } private long parseLong ( String text ) { } private int addOrUpdateContactInfo ( ImportHelper . ContactInfo info ) { } private int queryContactId ( ImportHelper . ContactInfo info ) { } private int addOrThrowRecordInfo ( int _id , ArrayList < ImportHelper . RecordInfo > list ) { } class ContactInfo { String name ; int sex ; int age ; String address ; String number ; int calllogcount ; int allowrecord ; String callstate ; long update ; int allowmodify ; String foo ; } class RecordInfo { int baseid ; String recordname ; String recordfile ; String recordnumber ; int recordflag ; long recordsize ; long recordring ; long recordstart ;

Fix:
info . update = parseLong ( text ) ;