S
Stanimir Stamenkov
The "Code Conventions for the Java Programming Language"
<http://java.sun.com/docs/codeconv/> doesn't state rules for
formatting newer Java 5 syntax: generics and annotations. In this
regard I've thought some may prefer a "compressed" style with these:
Map<String,String> stuff;
instead of:
Map<String, String> stuff;
@MyAnn(name="foo",data={43,234,65,76,125})
String stuff;
instead of:
@MyAnn(name = "foo", data = { 43, 234, 65, 76, 125 })
String stuff;
What's your preferred style (which may differ for the two cases)?
<http://java.sun.com/docs/codeconv/> doesn't state rules for
formatting newer Java 5 syntax: generics and annotations. In this
regard I've thought some may prefer a "compressed" style with these:
Map<String,String> stuff;
instead of:
Map<String, String> stuff;
@MyAnn(name="foo",data={43,234,65,76,125})
String stuff;
instead of:
@MyAnn(name = "foo", data = { 43, 234, 65, 76, 125 })
String stuff;
What's your preferred style (which may differ for the two cases)?