Buggy code:
public abstract class AbstractListIntent extends ListActivity { private static final int SUBMENU_EDIT = SubMenu . FIRST ; private static final int SUBMENU_MARK_AS_RETURNED = ( SubMenu . FIRST ) + 1 ; private static final int SUBMENU_DELETE = ( SubMenu . FIRST ) + 2 ; public static final int ACTION_ADD = 1 ; public static final int ACTION_EDIT = 2 ; public static final int RESULT_DELETE = 2 ; public static final int RESULT_RETURNED = 3 ; public static final String LOG_TAG = "WhoHasMyStuff" ; protected OpenLendDbAdapter mDbHelper ; private Cursor mLentObjectCursor ; @ Override public void onCreate ( Bundle savedInstanceState ) { } @ Override public void onDestroy ( ) { } protected abstract int getIntentTitle ( ) { } private void launchEditActivity ( int position , long id ) { } protected abstract int getEditAction ( ) { } protected void fillData ( ) { } private String getTimeDifference ( Date lentTime , Date now ) { } private SimpleCursorAdapter getLentObjects ( ) { } protected abstract Cursor getDisplayedObjects ( ) { } protected abstract boolean isMarkAsReturnedAvailable ( ) { } @ Override public void onCreateContextMenu ( ContextMenu menu , View view , ContextMenu . ContextMenuInfo menuInfo ) { } @ Override public boolean onContextItemSelected ( MenuItem item ) { } protected void onActivityResult ( int requestCode , int resultCode , Intent data ) { if ( resultCode == ( RESULT_OK ) ) { Bundle bundle = data . getExtras ( ) ; LentObject lentObject = createLentObjectFromBundle ( bundle ) ; if ( ( bundle . getString ( CALENDAR_ID ) ) != null ) { ContentValues event = new ContentValues ( ) ; <START_BUG> event . put ( "title" , ( "Expected<seq2seq4repair_space>return<seq2seq4repair_space>of<seq2seq4repair_space>" + ( lentObject . description ) ) ) ; <END_BUG> event . put ( "description" , ( ( ( "Expecting<seq2seq4repair_space>the<seq2seq4repair_space>return<seq2seq4repair_space>of<seq2seq4repair_space>" + ( lentObject . description ) ) + "<seq2seq4repair_space>from<seq2seq4repair_space>" ) + ( lentObject . personName ) ) ) ; long startTime = bundle . getLong ( RETURN_DATE ) ; long endTime = startTime + 1 ; event . put ( "dtstart" , startTime ) ; event . put ( "dtend" , endTime ) ; event . put ( "allDay" , 1 ) ; event . put ( "calendar_id" , bundle . getString ( CALENDAR_ID ) ) ; Uri eventsLocation ; if ( ( Integer . parseInt ( SDK ) ) >= 8 ) { eventsLocation = Uri . parse ( "content:////com.android.calendar//events" ) ; } else { eventsLocation = Uri . parse ( "content:////calendar//events" ) ; } lentObject . calendarEventURI = getContentResolver ( ) . insert ( eventsLocation , event ) ; } if ( requestCode == ( AbstractListIntent . ACTION_ADD ) ) { lentObject . returned = false ; mDbHelper . createLentObject ( lentObject ) ; } else if ( requestCode == ( AbstractListIntent . ACTION_EDIT ) ) { Long rowId = bundle . getLong ( KEY_ROWID ) ; mDbHelper . updateLentObject ( rowId , lentObject ) ; } fillData ( ) ; } else if ( resultCode == ( AbstractListIntent . RESULT_DELETE ) ) { Bundle bundle = data . getExtras ( ) ; Long rowId = bundle . getLong ( KEY_ROWID ) ; mDbHelper . deleteLentObject ( rowId ) ; fillData ( ) ; } else if ( resultCode == ( AbstractListIntent . RESULT_RETURNED ) ) { Bundle bundle = data . getExtras ( ) ; Long rowId = bundle . getLong ( KEY_ROWID ) ; mDbHelper . markLentObjectAsReturned ( rowId ) ; fillData ( ) ; } } private LentObject createLentObjectFromBundle ( Bundle bundle ) { } }

Fix:
event . put ( "title" , ( ( ( getString ( expected_return ) ) + "<seq2seq4repair_space>" ) + ( lentObject . description ) ) ) ;