LeftCurly question

Andy Kriger <[email protected]> Thu, 11 Jun 2009 17:11:16 -0400
Newsgroups gmane.comp.java.audit.checkstyle.user
Message-ID <[email protected]>
I'm seeing some unexpected behavior with LeftCurly and I'm wondering if
someone can point out if: I'm doing something wrong; this is expected
behavior; this is surprising to you too...
I want default behavior for LeftCurly braces (same line) for everything
except classes, interfaces, constructors, and methods...

This is my rule...
     <module name="LeftCurly">
            <property name="option" value="nl"/>
            <property name="tokens"
value="CLASS_DEF,INTERFACE_DEF,CTOR_DEF,METHOD_DEF"/>
     </module>

The problem is that code like this is not flagged (where the left curly
should be on the same line as the try/catch blocks)...
      try
      {
         return getter.invoke(source);
      }
      catch (IllegalAccessException e)
      {
         throw new RuntimeException("Error: ", e);
      }

Any ideas what's going on here?

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects

_______________________________________________
Checkstyle-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/checkstyle-user