Community
Participate
Working Groups
I rely on the "Create Field" quick fix to create a field for me. I like that it makes my field private by default. I'd like it to be 'private final' by default. Not only would that encourage good practice (OK, that's just my opinion, bit I know it's other peoples' opinion too) but it would keep me from having to navigate up to the new attribute and add it myself.
(In reply to comment #0) > but it would keep me from > having to navigate up to the new attribute and add it myself. Maybe the 'Add final modifier to private fields' save action can help you: Preferences > Java > Editor > Save Actions
I think that would be new code style setting, like for bug 40078.
Benno: > Maybe the 'Add final modifier to private fields' save action can > help you: > Preferences > Java > Editor > Save Actions I don't actually use the Save Actions, I'd prefer it in the Quick Fix personally because then the issue is done. Make sense?
Martin: Yes, it's like 40078, but oh dear, I don't want my method parameters final. :)
Sure, bug 40078 is a different issue, but the two will be most likely be fixed in one pass. But I must admit, this is not on our top priority list, as it it will be quite some work to bring all quick fixes, code generation and refactorings to follow the new preferences.
I forget off the top of my head how quick fixes work, but IIRC, maybe I could create my own Quick Fix based on the original one.