diff options
author | Martin Polden <mpolden@mpolden.no> | 2020-03-03 19:29:36 +0100 |
---|---|---|
committer | Martin Polden <mpolden@mpolden.no> | 2020-03-04 10:25:33 +0100 |
commit | 1cb204bef0b0009d2141ef91fcdeba7004e2684b (patch) | |
tree | 5988763f3ba7dedb8df1751c50627f314c1e074c /controller-server | |
parent | 8cab4d876ec21938cc57536829153593a78edf06 (diff) |
Silence empty catch block warning
Diffstat (limited to 'controller-server')
-rw-r--r-- | controller-server/src/test/java/com/yahoo/vespa/hosted/controller/maintenance/JobRunnerTest.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/controller-server/src/test/java/com/yahoo/vespa/hosted/controller/maintenance/JobRunnerTest.java b/controller-server/src/test/java/com/yahoo/vespa/hosted/controller/maintenance/JobRunnerTest.java index 205828b616e..32626e8ea8e 100644 --- a/controller-server/src/test/java/com/yahoo/vespa/hosted/controller/maintenance/JobRunnerTest.java +++ b/controller-server/src/test/java/com/yahoo/vespa/hosted/controller/maintenance/JobRunnerTest.java @@ -99,7 +99,7 @@ public class JobRunnerTest { jobs.start(id, systemTest, versions); fail("Job is already running, so this should not be allowed!"); } - catch (IllegalStateException e) { } + catch (IllegalStateException ignored) { } jobs.start(id, stagingTest, versions); assertTrue(jobs.last(id, systemTest).get().stepStatuses().values().stream().allMatch(unfinished::equals)); @@ -242,7 +242,7 @@ public class JobRunnerTest { jobs.locked(id, systemTest, deactivateTester, step -> { }); fail("deployTester step should still be locked!"); } - catch (TimeoutException e) { } + catch (TimeoutException ignored) { } // Thread is still trying to deploy tester -- delete application, and see all data is garbage collected. assertEquals(Collections.singletonList(runId), jobs.active().stream().map(run -> run.id()).collect(Collectors.toList())); |