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/UnresolvedVariablesQuickFixTest.java
buf.append("\n");
		buf.append("}\n");
		expected[i++]= buf.toString();
		
		buf= new StringBuffer();
		buf.append("package test1;\n");
		buf.append("import java.io.File;\n");
		buf.append("public class F {\n");
		buf.append("    void foo() {\n");
		buf.append("        char ch= File.pathSeparatorChar;\n");
		buf.append("    }\n");
		buf.append("}\n");
		expected[i++]= buf.toString();	
		
		String[] previews= new String[proposals.size()];
		for (i= 0; i < previews.length; i++) {
			Object curr= proposals.get(i);
			if (curr instanceof NewCUCompletionUsingWizardProposal) {
				previews[i]= getWizardPreviewContent((NewCUCompletionUsingWizardProposal) curr);
			} else {
				previews[i]= getPreviewContent((CUCorrectionProposal) curr);
			}
		}
		assertEqualStringsIgnoreOrder(previews, expected);	
	}
	
	public void testVarWithGenricType() throws Exception {
		IPackageFragment pack1= fSourceFolder.createPackageFragment("test1", false, null);
		StringBuffer buf= new StringBuffer();