View Javadoc
1   /*
2   OneStatementPerLine
3   treatTryResourcesAsStatement = (default)false
4   
5   
6   */
7   
8   package com.puppycrawl.tools.checkstyle.checks.coding.onestatementperline;
9   
10  import java.io.IOException;
11  import java.io.OutputStream;
12  import java.io.PipedOutputStream;
13  
14  public class InputOneStatementPerLineTest {
15      void testNestedInLambda() {
16          Runnable r = () -> {
17              try (OutputStream s1 = new PipedOutputStream()) {
18              }
19              catch (IOException e) {
20              }
21          };
22          System.out.println(r);
23      }
24  
25  }