Use of compound statements without conditionals in Java
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/9329921/what-does-two-consecutive-blocks-of-code-do">What does two consecutive blocks of code {}{} do?</a>  </p>
</blockquote>



<p>I am reworking a very old Java application and have observed that the original developer used a lot of compound statements within methods that are not part of any conditional or looping logic.</p>

<p>Example pseudocode:</p>

<pre><code>{
Object a = new Object();
a.setAttribute();
}

{
Object b = new Object();
b.setAttribute();
}
</code></pre>

<p>Is this just a style preference or am I missing something? </p>
