Bug 248563 - [clean up] Option to remove implicit keywords
Summary: [clean up] Option to remove implicit keywords
Status: CLOSED DUPLICATE of bug 130888
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.4.1   Edit
Hardware: PC Linux
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 335676 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-09-25 09:20 EDT by Chris Simmons CLA
Modified: 2011-01-28 08:25 EST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Simmons CLA 2008-09-25 09:20:17 EDT
Build ID: M20080911-1700

I'd like to be able to add a save action to remove implicit java keywords on save, so that eg

interface Foo {
  public static final String FOO = "foo";
}

becomes

interface Foo {
  String FOO = "foo";
}
since "public static final" is implicit.

Also

interface Foo {
  abstract void bar(final String baz);
}
becomes
interface Foo {
  void bar(String baz);
}
etc.

There are lots of other cases like this, such as final methods in final classes, private final methods generally to name some...

I can imagine some people may want to do the complete opposite, i.e. make all implicit keywords explicit.

Perhaps this really belongs in the formatter, either way you could hook this up to the save action.

Thanks.
Comment 1 Deepak Azad CLA 2011-01-28 08:19:14 EST
*** Bug 335676 has been marked as a duplicate of this bug. ***
Comment 2 Markus Keller CLA 2011-01-28 08:25:53 EST

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