Bug 455676 - Fix "unnecessary code" warnings in org.eclipse.core.resources