It looks like our current code formatting settings will split annotations thus:


  @Test(groups = { "Functional" })


reformats to


  @Test(groups =

  { "Functional" })


It seems Eclipse is not smart enough to realise this is not an array 
declaration.

If I change this formatter preference (from 'Next line'):


[cid:83bcf565-e7cb-45a0-9eb1-e8960bf2136d]


then the line is not split.

The option is saved in .settings/org.eclipse.jdt.core.prefs as


org.eclipse.jdt.core.formatter.brace_position_for_array_initializer=end_of_line


Shall we make this change to formatting?

It will affect array declarations as well as the annotations but I'm happy to 
have them on one line.


Mungo


Mungo Carstairs
Jalview Computational Scientist
The Barton Group
Division of Computational Biology
School of Life Sciences
University of Dundee, Dundee, Scotland, UK.
www.jalview.org<http://www.jalview.org/>
www.compbio.dundee.ac.uk<http://www.compbio.dundee.ac.uk/>

The University of Dundee is a registered Scottish Charity, No: SC015096
_______________________________________________
Jalview-dev mailing list
[email protected]
http://www.compbio.dundee.ac.uk/mailman/listinfo/jalview-dev

Reply via email to