Re: LeftCurly question
Thomas Suckow <[email protected]> Thu, 11 Jun 2009 15:01:41 -0700
| Newsgroups | gmane.comp.java.audit.checkstyle.user |
|---|---|
| Message-ID | <[email protected]> |
Then I believe you need to make another LeftCurly Check with ones for the same line. Thomas Suckow On Thu, Jun 11, 2009 at 2:11 PM, Andy Kriger <[email protected]> wrote: > 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 > > ------------------------------------------------------------------------------ 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