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/CodeFormatterUtilTest.java
assertEqualString(formatted, expected);
		
		String curr1= formatted.substring(positions[0], positions[1] + 1);
		assertEqualString(curr1, word1);
		
		String curr2= formatted.substring(positions[2], positions[3] + 1);
		assertEqualString(curr2, word2);
		
	}
	
	public void testCatchStringLiteral() throws Exception {
		StringBuffer buf= new StringBuffer();
		buf.append("\"Hello\" ");
		String contents= buf.toString();
		
		AST ast= AST.newAST(AST.JLS3);
		StringLiteral node= ast.newStringLiteral();
				
		String formatted= CodeFormatterUtil.format(node, contents, 0, null, "\n", null);
		buf= new StringBuffer();
		buf.append("\"Hello\"");
		String expected= buf.toString();
		assertEqualString(formatted, expected);
				
	}	
	
	public void testFormatSubstring() throws Exception {
		StringBuffer buf= new StringBuffer();
		buf.append("package test1;\n");
		buf.append("\n");