This content has been marked as final.
Show 3 replies
-
1. Should we use 3 or 4 space indentation in our AS7 sources...
bosschaert Jan 26, 2011 12:07 PM (in response to smarlow)1 of 1 people found this helpfulWhen I joined Red Hat/JBoss I was surprised to see the 3 space indentations. I had never seen that anywhere else. The coding standard used in AS7 is pretty much what I was used to from working in other code bases such as Apache, Eclipse and elsewhere.
-
2. Re: Should we use 3 or 4 space indentation in our AS7 sources...
dmlloyd Jan 26, 2011 12:26 PM (in response to bosschaert)Four space indent, cuddled braces, wrap at about 130 columns:
public void methodName(String foo, String bar) { if (foo.equals(bar)) { System.out.println("Equals!"); } else { System.out.println("Nope"); } }
Otherwise just look around for examples when you have a question. There's a code style thing for Eclipse in the AS7 repository somewhere.
-
3. Should we use 3 or 4 space indentation in our AS7 sources...
smarlow Jan 26, 2011 1:35 PM (in response to dmlloyd)Okay, no big deal to reformat to 4 space indents and use AS7 project specific settings in your favorite editor.