Bug 123729 - [clean up] Conversion between array variable declaration styles
Summary: [clean up] Conversion between array variable declaration styles
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2006-01-13 02:24 EST by Konstantin Scheglov CLA
Modified: 2008-07-16 06:06 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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