The following code, where Config.PREFERENCES_ENABLE is a static final boolean, produces a compiler warning (on all the code after the if block and the warning is "Dead Code"), and trying to use @SuppressWarnings("all") on it produces a syntax error. I know I'm being a bit OCD here, but you know how it is.
void displayPreferences() { if(!Config.PREFERENCES_ENABLED) return; startActivityForResult( new Intent(this, PrefsActivity.class), PREFERENCE_ACTIVITY); }