Skip to content

Commit c9706e5

Browse files
committed
Use targeted exceptions instead of generic Exception in defaultMaxTime
1 parent 00e659a commit c9706e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

concoredocker.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ private static void defaultMaxTime(int defaultValue) {
6565
try {
6666
String content = new String(Files.readAllBytes(Paths.get(inpath + "1/concore.maxtime")));
6767
maxtime = ((Number) literalEval(content)).intValue();
68-
} catch (Exception e) {
68+
} catch (IOException | ClassCastException | NumberFormatException e) {
6969
maxtime = defaultValue;
7070
}
7171
}

0 commit comments

Comments
 (0)