Bug 409592 - [move static members] Should remove qualified access where not needed any more
Summary: [move static members] Should remove qualified access where not needed any more
Status: CLOSED DUPLICATE of bug 150561
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.8.2   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-31 09:59 EDT by Rüdiger Herrmann CLA
Modified: 2013-05-31 10:30 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***