Re: Indentation problem with long method signature and throws

"Oliver Burn" <[email protected]>
Newsgroups gmane.comp.java.audit.checkstyle.user
Message-ID <[email protected]>
I know the style you want to apply. This limitation of the lack of
configuration of the check is something that I personally just "live with".

On Wed, Apr 2, 2008 at 2:13 AM, Edelson, Justin <[email protected]>
wrote:

> I'm having a problem with the Indentation module when a method signature
> is wrapped such that the throws part is on a second line. My desired
> style is something like this:
>    protected String findMailAddressFor(String displayName)
>            throws NamingException {
>        ...
>    }
>
> i.e. four spaces before the first line and 12 spaces before the second
> line.
>
> When using the default Indentation settings, I get this warning: method
> def throws at indentation level 12 not at correct indentation, 8
>
> I saw a mailing list entry on this from about 2 years ago that suggested
> it was impossible to work around. Is that still this case?
>
> Oddly (to my mind at least), this works fine:
>    protected String findMailAddressFor(String displayName, String
> parameter,
>            String otherParameter) throws NamingException {
>        ...
>    }
>
> Thanks,
> Justin
>
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
>
> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
> _______________________________________________
> Checkstyle-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/checkstyle-user
>

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Register now and save $200. Hurry, offer ends at 11:59 p.m., 
Monday, April 7! Use priority code J8TLD2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone

_______________________________________________
Checkstyle-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/checkstyle-user
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.