Bug 409592

Summary: [move static members] Should remove qualified access where not needed any more
Product: [Eclipse Project] JDT Reporter: RĂ¼diger Herrmann <ruediger.herrmann>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: markus.kell.r, ruediger.herrmann
Version: 3.8.2   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description RĂ¼diger Herrmann CLA 2013-05-31 09:59:28 EDT
Given these classes
  class Foo {
    static void foo() {
      Bar.bar();
    }
  }
and
  class Bar {
    static void bar() {
    }
  }
Moving method bar() to class Foo results in
  class Foo {
    static void foo() {
      Bar.bar();  // <-- remove qualified access: bar()
    }
    static void bar() {
    }
  }
The qualified invocation of Bar.bar() could now be simplified to just bar().
Comment 1 Markus Keller CLA 2013-05-31 10:30:11 EDT

*** This bug has been marked as a duplicate of bug 150561 ***