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/core/ScopeAnalyzerTest.java
int flags= ScopeAnalyzer.VARIABLES;
			IBinding[] res= new ScopeAnalyzer(astRoot).getDeclarationsAfter(offset, flags);
			
			assertVariables(res, new String[] { "i", "j", "x2" });
		}				
			
	}
	public void testTypeDeclarations1() throws Exception {
		
		IPackageFragment pack1= fSourceFolder.createPackageFragment("test1.ae", false, null);
		StringBuffer buf= new StringBuffer();
		buf.append("package test1.ae;\n");
		buf.append("public class E {\n");
		buf.append("    public static class A {\n");
		buf.append("        public class A1 {\n");
		buf.append("            public int foo() {\n");
		buf.append("                return 1;\n");		
		buf.append("            }\n");			
		buf.append("        }\n");
		buf.append("        public class A2 {\n");
		buf.append("        }\n");		
		buf.append("        public int foo() {\n");
		buf.append("            return 2;\n");		
		buf.append("        }\n");
		buf.append("    }\n");
		buf.append("}\n");		
		buf.append("class F {\n");
		buf.append("    public int goo(int param0) {\n");
		buf.append("        class C extends E.A {\n");