Buggy code:
public class SettingUtil { static final String SORT_ORDER_NAME = "SortOrder" ; static final String RESULT_FILTER_METHOD_NAME = "FilterMethod" ; static final String ACCOUNT_NAME = "account" ; static final String IF_SHOW_IMAGES_NAME = "IfShowImages" ; static final String SHORT_TIME_NAME = "ShortTime" ; static final String LONG_TIME_NAME = "LongTime" ; static final String IF_INVERSE_WAITING_IN_SMART_NAME = "IfInverseWaitingInSmart" ; static final String FORCE_CHINESE_NAME = "ForceChinese" ; static final String TYPE_FILTER_METHOD_NAME = "TypeFilterMethod" ; static final String SHOW_STATUS_IN_LIST_NAME = "ShowStatusInList" ; static final boolean DEFAULT_IF_SHOW_IMAGES = true ; static final int DEFAULT_SHORT_TIME = 7 ; static final int DEFAULT_LONG_TIME = 365 ; static final boolean DEFAULT_IF_INVERSE_WAITING_IN_SMART = false ; static final boolean DEFAULT_FORCE_CHINESE = false ; static final int DEFAULT_TYPE_FILTER_METHOD = 0 ; static final boolean DEFAULT_SHOW_STATUS_IN_LIST = false ; private static SharedPreferences options ; private static Observer settingObserver ; public static void getSettings ( Context context ) { } public static String getAccount ( ) { } public static void setAccount ( String account ) { } public static SettingUtil . ResultFilterMethod getResultFilterMethod ( ) { } public static void setResultFilterMethod ( SettingUtil . ResultFilterMethod resultFilterMethod ) { <START_BUG> if ( resultFilterMethod == ( SettingUtil . getResultFilterMethod ( ) ) ) { <END_BUG> SettingUtil . options . edit ( ) . putInt ( SettingUtil . RESULT_FILTER_METHOD_NAME , resultFilterMethod . ordinal ( ) ) . apply ( ) ; SettingUtil . notifyChange ( resultFilterMethod ) ; } } public static SettingUtil . SortOrder getSortOrder ( ) { } public static void setSortOrder ( SettingUtil . SortOrder sortOrder ) { } public static Boolean getIfShowImages ( ) { } public static void setIfShowImages ( boolean ifShowImages ) { } public static int getShortTime ( ) { } public static void setShortTime ( int shortTime ) { } public static int getLongTime ( ) { } public static void setLongTime ( int longTime ) { } public static boolean getIfInverseWaitingInSmart ( ) { } public static void setIfInverseWaitingInSmart ( boolean ifInverseWaitingInSmart ) { } public static boolean getForceChinese ( ) { } public static void setForceChinese ( boolean forceChinese ) { } public static SettingUtil . TypeFilterMethod getTypeFilterMethod ( ) { } public static void setTypeFilterMethod ( SettingUtil . TypeFilterMethod typeFilterMethod ) { } public static boolean getShowStatusInList ( ) { } public static void setShowStatusInList ( boolean showStatusInList ) { } private static void createSharedPreferences ( Context context ) { } public static void registerObserver ( Observer observer ) { } public static void unregisterObserver ( ) { } private static void notifyChange ( Object data ) { } public static void clearSetting ( Context context ) { } public static enum SortOrder { LAST_DATE_ASC , LAST_DATE_DESC , SMART_ORDER , ALPHABETICAL , PROPOSED_DATE_ASC , PROPOSED_DATE_DESC ; } public static enum ResultFilterMethod { EVERYTHING , ACCEPTED , REJECTED , WAITING ; } public static enum TypeFilterMethod { ALL , SUBMISSION , EDIT ; } }

Fix:
if ( resultFilterMethod != ( SettingUtil . getResultFilterMethod ( ) ) ) {