Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue #13328: Kill mutation for OneStatmentPerLineCheck-4
- Loading branch information
1 parent
917c687
commit c3ab3fd
Showing
4 changed files
with
43 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
...statementperline/InputOneStatementPerLineBeginTreeLastVariableResourcesStatementEnd1.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package com.puppycrawl.tools.checkstyle.checks.coding.onestatementperline; | ||
|
||
import java.io.*; | ||
|
||
// ok | ||
public class InputOneStatementPerLineBeginTreeLastVariableResourcesStatementEnd1 { | ||
public void resourceListExists() throws IOException { | ||
try (FileInputStream f1 = new FileInputStream("1"); FileInputStream f2 = | ||
new FileInputStream("2")) { | ||
} | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
...statementperline/InputOneStatementPerLineBeginTreeLastVariableResourcesStatementEnd2.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package com.puppycrawl.tools.checkstyle.checks.coding.onestatementperline; | ||
|
||
import java.io.*; | ||
|
||
// ok | ||
public class InputOneStatementPerLineBeginTreeLastVariableResourcesStatementEnd2 { | ||
void m(OutputStream out) throws IOException { | ||
try (out; InputStream in = new FileInputStream("filename")) { | ||
|
||
} | ||
} | ||
} |