8346049: jdk/test/lib/security/timestamp/TsaServer.java warnings

Reviewed-by: weijun, rhalade, hchao, lmesnik
This commit is contained in:
Fernando Guallini 2025-02-07 00:31:11 +00:00 committed by Rajan Halade
parent a0c7f661be
commit 1eb54e4228

View File

@ -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();
}
}