mirror of
https://github.com/openjdk/jdk.git
synced 2026-05-06 03:35:10 +00:00
8346049: jdk/test/lib/security/timestamp/TsaServer.java warnings
Reviewed-by: weijun, rhalade, hchao, lmesnik
This commit is contained in:
parent
a0c7f661be
commit
1eb54e4228
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user