<div dir="ltr"><div>Hi Curtis<br><br></div>Thanks for clarifying.   I was a bit confused by the fact that after autoformat sometimes the "{" was on the same line, and other time it was on a different line.  It took me a while to figure out the pattern.  <br>
<br>Brian<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Aug 21, 2014 at 4:30 PM, Curtis Rueden <span dir="ltr"><<a href="mailto:ctrueden@wisc.edu" target="_blank">ctrueden@wisc.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Brian,<div class=""><div><br></div><div>><span style="font-family:arial,sans-serif;font-size:13px"> </span><span style="font-family:arial,sans-serif;font-size:13px">Is it an intended part of the style??</span></div>



<div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div></div><div><span style="font-family:arial,sans-serif;font-size:13px">Yep, it's intended. It is a style I have used for many years. My reasoning is that once things wrap to a new line, the indentation becomes very misleading, and the "{" on its own line helps readability. But I acknowledge it's a bit weird.</span></div>



<div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">Lately I've been a little weary of the verbosity of Java -- maybe I'll give Scala a spin some time...</span></div>



<div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">Regards,</span></div><div><span style="font-family:arial,sans-serif;font-size:13px">Curtis</span></div>



<div class="gmail_extra"><br><br><div class="gmail_quote"><div><div class="h5">On Mon, Aug 18, 2014 at 2:26 PM, Brian Northan <span dir="ltr"><<a href="mailto:bnorthan@gmail.com" target="_blank">bnorthan@gmail.com</a>></span> wrote:<br>



</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr"><div><div><div>Hi List<br><br></div>Johannes recently pointed me to the formatting and cleanup styles of the top level imagej project (<a href="https://github.com/imagej/imagej/tree/master/config" target="_blank">https://github.com/imagej/imagej/tree/master/config</a>). <br>





<br></div>They work great.  Though one thing I've noticed is that it seems to handle the curly braces of functions with a multi-line declaration differently then those with one line.  What I mean is. <br><br></div><div>




short declaration gets formatted like this...<br></div><div><br>public int sillyFunction1(final boolean b) {<br>        return 0;<br>    }<br><br></div><div>but if the declaration wraps to the next line the curly brace goes to another line<br>




</div><div><br>public int sillyFunction2(final boolean b, final int someInteger,<br>        final long... dims)<br>    {<br>        return 0;<br>    }<br><br></div><div>Does anybody else notice this??  Is it an intended part of the style??  I've noticed this pattern in a few places in the imagej-ops code.  Sometimes the curly braces for a function (or class declaration) are on the same line, sometimes on a new line.  Seems to depend on the length of the function/class declaration.<span><font color="#888888"><br>




<br>Brian<br></font></span></div><a href="https://github.com/imagej/imagej-ops/blob/master/src/main/java/net/imagej/ops/arithmetic/add/AddConstantToArrayByteImage.java" target="_blank"></a><div><table><tbody><tr><td><br>



</td>
</tr><tr><td><br></td></tr><tr><td><br></td></tr><tr><td><br></td></tr><tr><td><br></td></tr></tbody></table><br><br><br></div><div>  <br></div><div>
<br><br><br><br></div></div>
<br></div></div>_______________________________________________<br>
ImageJ-devel mailing list<br>
<a href="mailto:ImageJ-devel@imagej.net" target="_blank">ImageJ-devel@imagej.net</a><br>
<a href="http://imagej.net/mailman/listinfo/imagej-devel" target="_blank">http://imagej.net/mailman/listinfo/imagej-devel</a><br>
<br></blockquote></div><br></div></div>
</blockquote></div><br></div>