<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.<br>
<br>Brian<br></div><a href="https://github.com/imagej/imagej-ops/blob/master/src/main/java/net/imagej/ops/arithmetic/add/AddConstantToArrayByteImage.java "></a><div><table class=""><tbody><tr><td id="LC42" class=""><br></td>
</tr><tr><td id="LC43" class=""><br></td></tr><tr><td id="LC44" class=""><br></td></tr><tr><td id="LC45" class=""><br></td></tr><tr><td id="LC46" class=""><br></td></tr></tbody></table><br><br><br></div><div> <br></div><div>
<br><br><br><br></div></div>