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/ReorgQuickFixTest.java
StringBuffer buf= new StringBuffer();
		buf.append("package test1;\n");
		buf.append("import mylib.Foo;\n");
		buf.append("public class E {\n");
		buf.append("}\n");
		ICompilationUnit cu= pack1.createCompilationUnit("E.java", buf.toString(), false, null);
		IClasspathEntry[] prevClasspath= cu.getJavaProject().getRawClasspath();
		
		IJavaProject otherProject= JavaProjectHelper.createJavaProject("other", "bin");
		try {
			File lib= JavaTestPlugin.getDefault().getFileInPlugin(JavaProjectHelper.MYLIB);
			assertTrue("lib does not exist",  lib != null && lib.exists());
			IPackageFragmentRoot otherRoot= JavaProjectHelper.addLibraryWithImport(otherProject, Path.fromOSString(lib.getPath()), null, null);
			
			CompilationUnit astRoot= getASTRoot(cu);
			ArrayList proposals= collectCorrections(cu, astRoot);
			assertNumberOfProposals(proposals, 3);
			assertCorrectLabels(proposals);
			
			for (int i= 0; i < proposals.size(); i++) {
				ChangeCorrectionProposal curr=  (ChangeCorrectionProposal) proposals.get(i);
				if (curr.getChange() instanceof AddToClasspathChange) {
					curr.apply(null);
					IClasspathEntry[] newClasspath= cu.getJavaProject().getRawClasspath();
					assertEquals(prevClasspath.length + 1, newClasspath.length);
					assertEquals(otherRoot.getPath(), newClasspath[prevClasspath.length].getPath());
				}
			}
		} finally {
			JavaProjectHelper.delete(otherProject);