JBoss Community

Re: Should we use 3 or 4 space indentation in our AS7 sources...

created by David Lloyd in JBoss AS7 Development - View the full discussion

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.

Reply to this message by going to Community

Start a new discussion in JBoss AS7 Development at Community