Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » JDT: Code cleanup, final keyword, cannot disable
JDT: Code cleanup, final keyword, cannot disable [message #247543] Thu, 06 September 2007 21:15 Go to next message
Dave Nebinger is currently offline Dave NebingerFriend
Messages: 2
Registered: July 2009
Junior Member
In 3.3, just turned on cleanup and enabled the final keyword for local
vars. Well, later decided that it was not as cool as I thought and
unchecked the check box for final on local vars.

Even though checkbox is cleared, it keeps inserting final in front of
locals, and I cannot seem to get rid of it.

Anyone else seing this? I was going to open a bug but thought I should
start here first...
Re: JDT: Code cleanup, final keyword, cannot disable [message #247593 is a reply to message #247543] Fri, 07 September 2007 00:49 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: wegener.cboenospam.com

David Nebinger wrote:
> In 3.3, just turned on cleanup and enabled the final keyword for local
> vars. Well, later decided that it was not as cool as I thought and
> unchecked the check box for final on local vars.
>
> Even though checkbox is cleared, it keeps inserting final in front of
> locals, and I cannot seem to get rid of it.
>
> Anyone else seing this? I was going to open a bug but thought I should
> start here first...
>
>
>
This is a shot in the dark. Do you have project specific settings
enabled? If so make sure that it is turned off in the project.
Re: JDT: Code cleanup, final keyword, cannot disable [message #247598 is a reply to message #247543] Fri, 07 September 2007 01:47 Go to previous messageGo to next message
Paul A. Rubin is currently offline Paul A. RubinFriend
Messages: 188
Registered: July 2009
Senior Member
David Nebinger wrote:
> In 3.3, just turned on cleanup and enabled the final keyword for local
> vars. Well, later decided that it was not as cool as I thought and
> unchecked the check box for final on local vars.
>
> Even though checkbox is cleared, it keeps inserting final in front of
> locals, and I cannot seem to get rid of it.
>
> Anyone else seing this? I was going to open a bug but thought I should
> start here first...
>

There are two different places where this is set, which I find a bit
confusing: Java -> Editor -> Save Actions -> Additional Actions and
Java -> Code Style -> Cleanup. Did you make sure it's off both places?

/Paul
Re: JDT: Code cleanup, final keyword, cannot disable [message #247724 is a reply to message #247598] Mon, 10 September 2007 15:45 Go to previous messageGo to next message
Dave Nebinger is currently offline Dave NebingerFriend
Messages: 2
Registered: July 2009
Junior Member
Ah, it was not 'project specific overrides', but the duplicate location
(cleanup & save action); one was checked, another was not.

I guess this should be considered a bug, no?
Re: JDT: Code cleanup, final keyword, cannot disable [message #247728 is a reply to message #247724] Tue, 11 September 2007 08:42 Go to previous message
Eclipse UserFriend
Originally posted by: benno_baumgartner.ch.ibm.com

Hi David

> Ah, it was not 'project specific overrides', but the duplicate location
> (cleanup & save action); one was checked, another was not.

Save actions are (as the name suggests) actions which are performed on
save whereas the clean up preferences configure how the Source > Clean
Up action works.

> I guess this should be considered a bug, no?

What are the steps to reproduce it?

Benno
Previous Topic:Cannot connect to VM error in Java debugger
Next Topic:How to avoid search hits in JAR files?
Goto Forum:
  


Current Time: Sat Aug 17 00:35:48 GMT 2024

Powered by FUDForum. Page generated in 0.04169 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top