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/quickfix/SerialVersionQuickFixTest.java
}
	protected void tearDown() throws Exception {
		JavaProjectHelper.delete(fProject);
	}
	/**
	 * @throws Exception
	 */
	public void testAnonymousClass() throws Exception {
		IPackageFragment package3= fSourceFolder.createPackageFragment("test3", false, null); 
		StringBuffer buffer= new StringBuffer();
		buffer.append("package test3;\n"); 
		buffer.append("import java.io.Serializable;\n"); 
		buffer.append("public class Test3 {\n"); 
		buffer.append("    protected int var1;\n"); 
		buffer.append("    protected int var2;\n"); 
		buffer.append("    public void test() {\n"); 
		buffer.append("        Serializable var3= new Serializable() {\n"); 
		buffer.append("            int var4;\n"); 
		buffer.append("        };\n"); 
		buffer.append("    }\n"); 
		buffer.append("}\n"); 
		ICompilationUnit unit3= package3.createCompilationUnit("Test3.java", buffer.toString(), false, null); 
		fProject.getProject().build(IncrementalProjectBuilder.FULL_BUILD, new NullProgressMonitor());
		CompilationUnit root3= getASTRoot(unit3);
		ArrayList proposals3= collectCorrections(unit3, root3);
		assertNumberOf("proposals3", proposals3.size(), 2); 
		assertCorrectLabels(proposals3);