Skip to content

Commit 1eb54e4

Browse files
fgualliniRajan Halade
authored andcommitted
8346049: jdk/test/lib/security/timestamp/TsaServer.java warnings
Reviewed-by: weijun, rhalade, hchao, lmesnik
1 parent a0c7f66 commit 1eb54e4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/lib/jdk/test/lib/security/timestamp/TsaServer.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2020, 2022, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2020, 2025, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -87,7 +87,7 @@ public TsaServer(int port, KeyStore keyStore, String passphrase)
8787
*
8888
* @param handler a {@link TsaHandler}
8989
*/
90-
public void setHandler(TsaHandler handler) {
90+
public final void setHandler(TsaHandler handler) {
9191
server.createContext("/", handler);
9292
}
9393

@@ -113,7 +113,7 @@ public int getPort() {
113113
}
114114

115115
@Override
116-
public void close() throws Exception {
116+
public void close() {
117117
stop();
118118
}
119119
}

0 commit comments

Comments
 (0)