Bug 312536 - [clean up] Save action should add "final" for private static fields too
Summary: [clean up] Save action should add "final" for private static fields too
Status: CLOSED WONTFIX
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.6   Edit
Hardware: PC Windows XP
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2010-05-12 03:31 EDT by Andreas Höhmann CLA
Modified: 2020-03-16 10:32 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Höhmann CLA 2010-05-12 03:31:29 EDT
Build Identifier: 20100218-1602

Currently the save action feature add "final" only for "private fields" but not for "private static fields". Why?

Reproducible: Always

Steps to Reproduce:
1. activate save actions
2. enable "code style" -> "variable declaration" -> "use modifier 'final' where possible" -> "private fields"
3. write a class with 'privat static String foo = "bar";'
4. save class

Now I expect that the field foo can be "final".
Comment 1 Frederic Fusier CLA 2010-05-12 05:17:02 EDT
Move to JDT/UI
Comment 2 Markus Keller CLA 2010-05-12 06:51:40 EDT
Yes, would make sense for private static fields too (although the field names would use the wrong naming conventions afterwards).
Comment 3 Eclipse Genie CLA 2020-03-16 10:32:40 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.