Bug 68338 - In generation of main methods on class creation wizzard, the parameter args should be final. [code manipulation]
Summary: In generation of main methods on class creation wizzard, the parameter args s...
Status: RESOLVED DUPLICATE of bug 40078
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-23 13:26 EDT by Robert (Kraythe) Simmons CLA
Modified: 2004-09-21 03:44 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robert (Kraythe) Simmons CLA 2004-06-23 13:26:52 EDT
Currently the generation wizzard makes the following: 

public final static main(String[] args) {
}

However, this should actually be:

public final static main(final String[] args) {
}

The keyword final firms up the code and blocks unintentional assignment.
Comment 1 Dirk Baeumer CLA 2004-06-24 06:43:11 EDT
Not critical for 3.0.
Comment 2 Robert (Kraythe) Simmons CLA 2004-09-20 15:08:52 EDT
Could we quickly patch this for 3.1? I cant immagine it would take more than 2 
minutes. =)
Comment 3 Markus Keller CLA 2004-09-21 03:44:04 EDT
Maybe you like this style - others don't. Reopening to mark as dup of bug 40078,
since we shouldn't offer an option just for this specific case.
Comment 4 Markus Keller CLA 2004-09-21 03:44:26 EDT

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