1 /*
2 OneStatementPerLine
3 treatTryResourcesAsStatement = true
4
5
6 */
7
8 package com.puppycrawl.tools.checkstyle.checks.coding.onestatementperline;
9
10 import java.io.*;
11
12
13 public class InputOneStatementPerLineBeginTreeLastVariableResourcesStatementEnd2 {
14 void m(OutputStream out) throws IOException {
15 try (out; InputStream in = new FileInputStream("filename")) {
16
17 }
18 }
19 }