Bug 123729

Summary: [clean up] Conversion between array variable declaration styles
Product: [Eclipse Project] JDT Reporter: Konstantin Scheglov <Konstantin.Scheglov>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: ASSIGNED --- QA Contact:
Severity: enhancement    
Priority: P3 CC: benno.baumgartner, eclipse
Version: 3.2Keywords: helpwanted
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Konstantin Scheglov CLA 2006-01-13 02:24:18 EST
Can you add conversion between two styles of array variable declaration?

(1) Type types[];
(2) Type[] type;

Complex case is when we have several VariableDeclarationFragment's and (1), we should check, that all variables are declared as arrays.

PS. Hm... May be I am wrong about aim of [clean up]. What I am looking is conversion between different code styles, with all possible combinations, not only in one "good" (from someone point of view) way.
Comment 1 Martin Aeschlimann CLA 2006-01-13 04:18:53 EST
I guess [clean up] is two thing
- a multi fix of problems so you don't have to use quick fix all the time
- helping to establish a code style: here you are right that each option should offer diffenert variants: E.g. Always use curly brackets on if statements, never use brackets if not necessary.

Maybe it would make sense to clearly separate these.
Comment 2 Benno Baumgartner CLA 2006-03-27 09:18:47 EST
Sorry, has to wait post 3.2