title: What is the code convention for formatting try-with-resources?
body: <p>I'd like to know what the code convention is for formatting try blocks with resources, in particular with more than one resource. Currently I put each resource on its own line, terminated by a semicolon, and use vim's indentation level (2 tab characters), like the following:</p>
  
  <pre><code>try (
          InputStream in1 = ...;
          InputStream in2 = ...;
      ) {
      ...;
  }
  </code></pre>
  
  <p>I have also seen people use semicolon as a seperator rather than a terminator, and only use a newline between each resource like the following:</p>
  
  <pre><code>try (InputStream in1 = ...;
      InputStream in2 = ...) {
      ...;
  }
  </code></pre>
  
  <p>What is the convention?</p>