1
2
3
4
5
6
7
8
9 package com.puppycrawl.tools.checkstyle.checks.coding.onestatementperline;
10
11 import java.io.IOException;
12 import java.io.PipedOutputStream;
13 import java.io.OutputStream;
14
15 public class InputOneStatementPerLineTryWithResourcesIgnore {
16
17 void method() throws IOException {
18 OutputStream s1 = new PipedOutputStream();
19 OutputStream s2 = new PipedOutputStream();
20 try (s1; s2; OutputStream s3 = new PipedOutputStream();) {
21 }
22 try (s1; OutputStream s4 = new PipedOutputStream(); s2;) {
23 }
24 try (s1; s2; OutputStream s5 = new PipedOutputStream()) {
25 }
26 try (s1; OutputStream s6 = new PipedOutputStream(); s2) {
27 }
28 try (
29 OutputStream s7 = new PipedOutputStream();OutputStream s8 = new PipedOutputStream();
30 s2;
31 ) {}
32 try (
33 OutputStream s9=new PipedOutputStream();s2;OutputStream s10 = new PipedOutputStream())
34 {}
35 try (s1; OutputStream s11 = new PipedOutputStream();
36 s2;) {
37 }
38 try (OutputStream
39 s12 = new PipedOutputStream();s1;OutputStream s3 = new PipedOutputStream()
40 ;s2;) {
41 }
42 try (OutputStream
43 s12 = new PipedOutputStream();s1;OutputStream s3
44 = new PipedOutputStream()) {}
45 try (s1; s2; OutputStream stream3 =
46 new PipedOutputStream()) {}
47 try (OutputStream s10 = new PipedOutputStream();
48 OutputStream s11 = new PipedOutputStream(); s2;) {
49 }
50 }
51 }