View Javadoc
1   package com.puppycrawl.tools.checkstyle.checks.whitespace.parenpad;
2   
3   class InputParenPadTryWithResources {
4       private void tryWithResources() throws Exception {
5           try (AutoCloseable a = null) {} // ok
6           try (AutoCloseable a = null; AutoCloseable b = null) {} // ok
7           try (AutoCloseable a = null; AutoCloseable b = null; ) {} // ok
8           try (AutoCloseable a = null; AutoCloseable b = null; ) {} // ok
9           try (AutoCloseable a = null ) {} // warning
10          try (AutoCloseable a = null; AutoCloseable b = null ) {} // warning
11      }
12  }