Buggy code:
public class FoodDbAdapter extends SQLiteAssetHelper { public static final String COLUMN_TABLE_NAME = "TableName" ; public static final String NEVO_TABLE_NAME = "Food" ; public static final String NEVO_COLUMN_DUTCH_NAME = "Product_omschrijving" ; public static final String NEVO_COLUMN_ENGLISH_NAME = "EnglishName" ; public static final String NEVO_COLUMN_WEIGHT_PER_UNIT = "Hoeveelheid" ; public static final String NEVO_COLUMN_UNIT_TEXT = "Meeteenheid" ; public static final String NEVO_COLUMN_CARBS_GRAMS_PER_UNIT = "_05001" ; public static final String NEVO_COLUMN_PRODUCT_CODE = "Productcode" ; public static final String MYFOODS_TABLE_NAME = "MyFoods" ; public static final String MYFOODS_COLUMN_NAME = "Name" ; public static final String MYFOODS_COLUMN_WEIGHT_PER_UNIT = "WeightPerUnit" ; public static final String MYFOODS_COLUMN_UNIT_TEXT = "UnitText" ; public static final String MYFOODS_COLUMN_CARBS_GRAMS_PER_UNIT = "CarbsGramsPerUnit" ; public static final String MYFOODS_COLUMN_ID = "Id" ; private static final String DATABASE_NAME = "NevoFoodListWithEnglishNamesAndMyFoods" ; private static final int DATABASE_VERSION = 1 ; private Language mLanguage ; private SQLiteDatabase mDatabase ; private HashMap < FoodItem , FoodItemInfo > mFoodItemCache ; public FoodDbAdapter ( Context context ) { } public void open ( ) { } @ SuppressWarnings ( "deprecation" ) public String getQueryStringAllFoods ( String foodName ) { } @ SuppressWarnings ( "deprecation" ) public String getQueryStringBuiltinFoods ( String foodName ) { SQLiteQueryBuilder foodQb = new SQLiteQueryBuilder ( ) ; <START_BUG> String [ ] foodSqlSelect = new String [ ] { "0<seq2seq4repair_space>_id" , String . format ( "\"%s\"<seq2seq4repair_space>AS<seq2seq4repair_space>%s" , getFoodNameColumnName ( ) , FoodDbAdapter . COLUMN_TABLE_NAME ) , FoodDbAdapter . NEVO_COLUMN_DUTCH_NAME , FoodDbAdapter . NEVO_COLUMN_ENGLISH_NAME , FoodDbAdapter . NEVO_COLUMN_WEIGHT_PER_UNIT , FoodDbAdapter . NEVO_COLUMN_UNIT_TEXT , FoodDbAdapter . NEVO_COLUMN_CARBS_GRAMS_PER_UNIT , FoodDbAdapter . NEVO_COLUMN_PRODUCT_CODE } ; <END_BUG> String foodWhereClause = ( ( ( getFoodNameColumnName ( ) ) + "<seq2seq4repair_space>like<seq2seq4repair_space>'%" ) + foodName ) + "%'" ; foodQb . setTables ( FoodDbAdapter . NEVO_TABLE_NAME ) ; String queryString = foodQb . buildQuery ( foodSqlSelect , foodWhereClause , null , null , null , getFoodNameColumnName ( ) , null ) ; return queryString ; } @ SuppressWarnings ( "deprecation" ) public String getQueryStringMyFoods ( String foodName ) { } public ArrayList < FoodItemInfo > getAllMyFoods ( ) { } public void setLanguage ( Language language ) { } public String getFoodNameColumnName ( ) { } public FoodItemInfo getFoodItemInfo ( FoodItem foodItem ) { } public void addMyFoodItemInfo ( FoodItemInfo foodItemInfo ) { } public void updateMyFoodItemInfo ( FoodItemInfo foodItemInfo ) { } public void removeMyFoodItem ( FoodItem foodItem ) { } public void removeMyFoodItems ( ArrayList < FoodItem > itemsToRemove ) { } public void removeAllMyFoods ( ) { } public boolean myFoodNameExists ( String foodName , int exceptId ) { } private void removeMyFoodItemFromCache ( FoodItem foodItem ) { } private void removeAllMyFoodsFromCache ( ) { } private void deleteDbIfItAlreadyExists ( Context context ) { } }

Fix:
String [ ] foodSqlSelect = new String [ ] { "0<seq2seq4repair_space>_id" , String . format ( "\"%s\"<seq2seq4repair_space>AS<seq2seq4repair_space>%s" , FoodDbAdapter . NEVO_TABLE_NAME , FoodDbAdapter . COLUMN_TABLE_NAME ) , FoodDbAdapter . NEVO_COLUMN_DUTCH_NAME , FoodDbAdapter . NEVO_COLUMN_ENGLISH_NAME , FoodDbAdapter . NEVO_COLUMN_WEIGHT_PER_UNIT , FoodDbAdapter . NEVO_COLUMN_UNIT_TEXT , FoodDbAdapter . NEVO_COLUMN_CARBS_GRAMS_PER_UNIT , FoodDbAdapter . NEVO_COLUMN_PRODUCT_CODE } ;