Bug 117477 [clean up] add 'remove this qualifier' clean up
There is 'add this qualifier' clean up, but there are no 'remove this qualifier'. But what if I have CU with such code style and don't like it? About this code: private int i; void foo(int i) {this.i= i;} May be just check that there are no SingleVariableDeclaration with same identifier in parent method(s)? Plus such code is also possible: public class Test { private int field; private class Inner { private int field; public void foo(int i) { Test.this.field = i; } } } So, probably we should also check that there are no field hiding in parent classes.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/fix/CodeStyleCleanUp.java
if (isFlag(QUALIFY_METHOD_ACCESS))
			result.add(MultiFixMessages.CodeStyleCleanUp_QualifyNonStaticMethod_description);
		if (isFlag(QUALIFY_STATIC_METHOD_ACCESS)) 
			result.add(MultiFixMessages.CodeStyleCleanUp_QualifyStaticMethod_description);
		return (String[])result.toArray(new String[result.size()]);
	}
	
	public String getPreview() {
		StringBuffer buf= new StringBuffer();
		
		buf.append("private int value;\n"); 
		buf.append("public int getValue() {\n"); 
		if (isFlag(QUALIFY_FIELD_ACCESS)) {
			buf.append("    return this.value;\n"); 
		} else {
			buf.append("    return value;\n"); 
		}
		buf.append("}\n"); 
		buf.append("\n"); 
		buf.append("public boolean hasValue() {\n"); 
		if (isFlag(QUALIFY_METHOD_ACCESS)) {
			buf.append("    return this.getValue() > 0;\n"); 
		} else {
			buf.append("    return getValue() > 0;\n"); 
		}
		buf.append("}\n"); 
		buf.append("\n"); 
		buf.append("class E {\n"); 
		buf.append("    public static int NUMBER;\n"); 
		buf.append("    public static void set(int i) {\n");