Buggy code:
private Dialog mRootDialog ; private Dialog mUpdateRecoveryDialog ; @ Override public void onCreate ( Bundle icicle ) { } private ListPreference addListPreference ( String prefKey ) { } private void disableForUser ( Preference pref ) { } private SwitchPreference findAndInitSwitchPref ( String key ) { } private boolean removeRootOptionsIfRequired ( ) { } @ Override public void onActivityCreated ( Bundle savedInstanceState ) { } private boolean removePreferenceForProduction ( Preference preference ) { } private void removePreference ( Preference preference ) { } private void setPrefsEnabledState ( boolean enabled ) { } @ Override public void onResume ( ) { } @ Override public void onDestroyView ( ) { } void updateSwitchPref ( SwitchPreference switchPref , boolean value ) { } private void updateAllOptions ( ) { } private void writeAdvancedRebootOptions ( ) { } private void updateAdvancedRebootOptions ( ) { } private void resetDevelopmentShortcutOptions ( ) { } private void writeDevelopmentShortcutOptions ( ) { } private void updateDevelopmentShortcutOptions ( ) { } private void updateAdbOverNetwork ( ) { } private void resetDangerousOptions ( ) { } private void updateRootAccessOptions ( ) { } private void writeRootAccessOptions ( Object newValue ) { } private void resetRootAccessOptions ( ) { } private void resetAdbNotifyOptions ( ) { } private void resetUseNuplayerOptions ( ) { } private void updateHdcpValues ( ) { } private void writeKillAppLongpressBackOptions ( ) { } private void updateKillAppLongpressBackOptions ( ) { } private void updatePasswordSummary ( ) { } private void writeBtHciSnoopLogOptions ( ) { } private void writeDebuggerOptions ( ) { } private static void resetDebuggerOptions ( ) { } private void updateDebuggerOptions ( ) { } private void resetVerifyAppsOverUsbOptions ( ) { } private void updateVerifyAppsOverUsbOptions ( ) { } private void writeVerifyAppsOverUsbOptions ( ) { } private boolean enableVerifierSetting ( ) { } private boolean showVerifierSetting ( ) { } private static boolean showEnableOemUnlockPreference ( ) { } private static int currentStrictModeActiveIndex ( ) { } private void writeStrictModeVisualOptions ( ) { } private void updateStrictModeVisualOptions ( ) { } private void writePointerLocationOptions ( ) { } private void updatePointerLocationOptions ( ) { } private void writeShowTouchesOptions ( ) { } private void updateShowTouchesOptions ( ) { } private void updateFlingerOptions ( ) { } private void writeShowUpdatesOption ( ) { } private void writeDisableOverlaysOption ( ) { } private void updateHardwareUiOptions ( ) { } private void writeHardwareUiOptions ( ) { } private void updateMsaaOptions ( ) { } private void writeMsaaOptions ( ) { } private void updateTrackFrameTimeOptions ( ) { } private void writeTrackFrameTimeOptions ( Object newValue ) { } private void updateShowNonRectClipOptions ( ) { } private void writeShowNonRectClipOptions ( Object newValue ) { } private void updateShowHwScreenUpdatesOptions ( ) { } private void writeShowHwScreenUpdatesOptions ( ) { } private void updateShowHwLayersUpdatesOptions ( ) { } private void writeShowHwLayersUpdatesOptions ( ) { } private void updateDebugHwOverdrawOptions ( ) { } private void writeDebugHwOverdrawOptions ( Object newValue ) { } private void updateDebugLayoutOptions ( ) { } private void writeDebugLayoutOptions ( ) { } private void updateSimulateColorSpace ( ) { } private boolean usingDevelopmentColorSpace ( ) { } private void writeSimulateColorSpace ( Object value ) { } private void updateUseNuplayerOptions ( ) { } private void writeUseNuplayerOptions ( ) { } private void updateUSBAudioOptions ( ) { } private void writeUSBAudioOptions ( ) { } private void updateForceRtlOptions ( ) { } private void writeForceRtlOptions ( ) { } private void updateWifiDisplayCertificationOptions ( ) { } private void writeWifiDisplayCertificationOptions ( ) { } private void updateWifiVerboseLoggingOptions ( ) { } private void writeWifiVerboseLoggingOptions ( ) { } private void updateWifiAggressiveHandoverOptions ( ) { } private void writeWifiAggressiveHandoverOptions ( ) { } private void updateWifiAllowScansWithTrafficOptions ( ) { } private void writeWifiAllowScansWithTrafficOptions ( ) { } private void updateLogdSizeValues ( ) { } private void writeLogdSizeOption ( Object newValue ) { } private void updateCpuUsageOptions ( ) { } private void writeCpuUsageOptions ( ) { } private void updateCpuInfoOptions ( ) { } private void writeCpuInfoOptions ( ) { } private void writeImmediatelyDestroyActivitiesOptions ( ) { } private void updateImmediatelyDestroyActivitiesOptions ( ) { } private void updateAnimationScaleValue ( int which , ListPreference pref ) { } private void updateAnimationScaleOptions ( ) { } private void writeAnimationScaleOption ( int which , ListPreference pref , Object newValue ) { } private void updateOverlayDisplayDevicesOptions ( ) { } private void writeOverlayDisplayDevicesOptions ( Object newValue ) { } private void updateOpenGLTracesOptions ( ) { } private void writeOpenGLTracesOptions ( Object newValue ) { } private void updateAppProcessLimitOptions ( ) { } private void writeAppProcessLimitOptions ( Object newValue ) { } private void writeShowAllANRsOptions ( ) { } private void updateShowAllANRsOptions ( ) { } private void updateUpdateRecoveryOptions ( ) { <START_BUG> updateSwitch ( mUpdateRecovery , SystemProperties . getBoolean ( DevelopmentSettings . UPDATE_RECOVERY_PROPERTY , false ) ) ; <END_BUG> } private void writeUpdateRecoveryOptions ( ) { } private void resetUpdateRecoveryOptions ( ) { } @ Override public void onSwitchChanged ( Switch switchView , boolean isChecked ) { } @ Override public void onActivityResult ( int requestCode , int resultCode , Intent data ) { } @ Override public boolean onPreferenceTreeClick ( PreferenceScreen preferenceScreen , Preference preference ) { } @ Override public boolean onPreferenceChange ( Preference preference , Object newValue ) { } private void dismissDialogs ( ) { } public void onClick ( DialogInterface dialog , int which ) { } public void onDismiss ( DialogInterface dialog ) { } @ Override public void onDestroy ( ) { } void pokeSystemProperties ( ) { } static class SystemPropPoker extends AsyncTask < Void , Void , Void > { @ Override protected Void doInBackground ( Void ... params ) { } } public static final SearchIndexProvider SEARCH_INDEX_DATA_PROVIDER = new BaseSearchIndexProvider ( ) { private boolean isShowingDeveloperOptions ( Context context ) { } @ Override public List < SearchIndexableResource > getXmlResourcesToIndex ( Context context , boolean enabled ) { } @ Override public List < String > getNonIndexableKeys ( Context context ) { } } ; }

Fix:
updateSwitchPref ( mUpdateRecovery , SystemProperties . getBoolean ( DevelopmentSettings . UPDATE_RECOVERY_PROPERTY , false ) ) ;