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/CleanUpRefactoringWizard.java
private class TabFolderLayout extends Layout {
			protected Point computeSize (Composite composite, int wHint, int hHint, boolean flushCache) {
				if (wHint != SWT.DEFAULT && hHint != SWT.DEFAULT)
					return new Point(wHint, hHint);
					
				Control [] children = composite.getChildren ();
				int count = children.length;
				int maxWidth = 0, maxHeight = 0;
				for (int i=0; i<count; i++) {
					Control child = children [i];
					Point pt = child.computeSize (SWT.DEFAULT, SWT.DEFAULT, flushCache);
					maxWidth = Math.max (maxWidth, pt.x);
					maxHeight = Math.max (maxHeight, pt.y);
				}
				
				if (wHint != SWT.DEFAULT)
					maxWidth= wHint;
				if (hHint != SWT.DEFAULT)
					maxHeight= hHint;
				
				return new Point(maxWidth, maxHeight);