diff --git a/test/lib/jdk/test/lib/security/timestamp/TsaServer.java b/test/lib/jdk/test/lib/security/timestamp/TsaServer.java index 9bffa1a240f..e103821c9b8 100644 --- a/test/lib/jdk/test/lib/security/timestamp/TsaServer.java +++ b/test/lib/jdk/test/lib/security/timestamp/TsaServer.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, 2022, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2020, 2025, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -87,7 +87,7 @@ public class TsaServer implements AutoCloseable { * * @param handler a {@link TsaHandler} */ - public void setHandler(TsaHandler handler) { + public final void setHandler(TsaHandler handler) { server.createContext("/", handler); } @@ -113,7 +113,7 @@ public class TsaServer implements AutoCloseable { } @Override - public void close() throws Exception { + public void close() { stop(); } }