Community
Participate
Working Groups
Using I20080702-0939. Consider the following test case: public class X { public void foo() { this.foo(""); } public void foo(String str) { } void bar(){ this.foo(); } void test() { this.bar(); } } I run the "Clean Up" "Remove 'this' qualifier for non static member access" on it and get: public class X { public void foo() { this.foo(""); } public void foo(String str) { } void bar(){ this.foo(); } void test() { bar(); } } Note that all this.foo(...) calls were not cleaned up, I would expect them to be as there's absolutely not ambiguity on these calls... As the test cases showing up, it seems that this issue was due to the fact that the class X defines two 'foo' methods...
Benno, any reason to not remove all 'this'?
(In reply to comment #1) > Benno, any reason to not remove all 'this'? > No, it looks safe to remove it.
*** Bug 260253 has been marked as a duplicate of this bug. ***
*** Bug 325420 has been marked as a duplicate of this bug. ***
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug. If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie.