[jboss-dev-forums] [JBoss AS7 Development] - Re: Should we use 3 or 4 space indentation in our AS7 sources...

David Lloyd do-not-reply at jboss.com
Wed Jan 26 12:26:46 EST 2011


David Lloyd [http://community.jboss.org/people/david.lloyd%40jboss.com] created the discussion

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

To view the discussion, visit: http://community.jboss.org/message/583372#583372

--------------------------------------------------------------
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
[http://community.jboss.org/message/583372#583372]

Start a new discussion in JBoss AS7 Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2225]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20110126/abfd05e2/attachment.html 


More information about the jboss-dev-forums mailing list