Skip to content

Commit c03fcac

Browse files
committed
throw
1 parent 3f5855c commit c03fcac

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

test/src/test/java/hudson/model/FileParameterValueTest.java

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -466,13 +466,9 @@ void compareNullParams() throws IOException {
466466
assertNotEquals(nonNullParam, nullParam1);
467467
}
468468

469-
private File createParamFile(String fileName) {
469+
private File createParamFile(String fileName) throws IOException {
470470
File f = new File(tmp, fileName);
471-
try {
472-
FileUtils.writeStringToFile(f, "content", StandardCharsets.UTF_8);
473-
} catch (IOException e) {
474-
throw new RuntimeException(e);
475-
}
471+
FileUtils.writeStringToFile(f, "content", StandardCharsets.UTF_8);
476472
return f;
477473
}
478474
}

0 commit comments

Comments
 (0)