Bug 76530 [options] Warn about unused local variables and private members
I think we should warn about unused local variables and unused private members by default. These things are errors akin to unused imports, which we already warn about.
org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/search/JUnitSourceSetup.java
public static final String PROJECT_NAME= "JUnitSource";
	public static final String SRC_CONTAINER= "src";
	
	private IJavaProject fProject;
	private SearchParticipantsExtensionPoint fExtensionPoint;
	
	static class NullExtensionPoint extends SearchParticipantsExtensionPoint {
		public SearchParticipantRecord[] getSearchParticipants(IProject[] concernedProjects) throws CoreException {
			return new SearchParticipantRecord[0];
		}
	}
	
	public static IJavaProject getProject() {
		IProject project= ResourcesPlugin.getWorkspace().getRoot().getProject(PROJECT_NAME);
		return JavaCore.create(project);