Currently there is no way to set that different types of automatically 
generated variables should (by default) be declared as final.

It would be really nice if the options dialogues had a "final declarations" 
preferences bit where you could specify which types of automatically 
generated variables get created as final.

Most variables used in Java code should be declared as final. The only common 
exceptions being loop variables and collecting variables. Things like method 
parameters should *always* be declared as final.

I think this small feature would promote better code by encouraging people to 
declare fields and variables as final most of the time. (Rather than the 
currently common practise of only declaring a variable as final if it needs 
to be reachable from within an inner.)

Currently with IDEA, every time it generates a method for me I have to go in 
and type 'final' in front of each parameter.

A feature like this is well in keeping with IDEA's philosophy of providing 
features which encorage better coding. Hang on to this philosophy guys! Don't 
get dragged down into the "adding bells and whistles simply because JBuilder 
has it" mentality!

Rich

==============================================================================
This email and any files transmitted with it are confidential and intended solely for 
the use of the individual or entity to whom they are addressed. All information is the 
view of the individual and not necessarily the company. If you are not the intended 
recipient you are hereby notified that any dissemination, distribution, or copying of 
this communication and its attachments is strictly prohibited. If you have received 
this email in error please notify: 
[EMAIL PROTECTED]


==============================================================================

_______________________________________________
Eap-features mailing list
[EMAIL PROTECTED]
http://lists.jetbrains.com/mailman/listinfo/eap-features

Reply via email to