Skip to content

Commit 2dfaa13

Browse files
committed
Suppress JDK 24 deprecation/removal warnings
1 parent 57f35cf commit 2dfaa13

31 files changed

Lines changed: 56 additions & 28 deletions

build.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,7 @@
297297
classpathref="classpath"
298298
includeantruntime="false">
299299
<compilerarg value="-Xlint:-options"/>
300+
<compilerarg value="-Xlint:-path"/>
300301
</javac>
301302
</target>
302303

src/java/com/wolfssl/WolfCryptEccKey.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public byte[] getPrivateKeyPKCS8() {
110110
return EccPrivateKeyToPKCS8(getEccKeyPtr());
111111
}
112112

113-
@SuppressWarnings("deprecation")
113+
@SuppressWarnings({"deprecation", "removal"})
114114
@Override
115115
protected void finalize() throws Throwable
116116
{

src/java/com/wolfssl/WolfSSL.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2024,7 +2024,7 @@ protected static int getNamedGroupFromString(String curveName) {
20242024
}
20252025
}
20262026

2027-
@SuppressWarnings("deprecation")
2027+
@SuppressWarnings({"deprecation", "removal"})
20282028
@Override
20292029
protected void finalize() throws Throwable
20302030
{

src/java/com/wolfssl/WolfSSLCRL.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -880,7 +880,7 @@ public synchronized void free() {
880880
}
881881
}
882882

883-
@SuppressWarnings("deprecation")
883+
@SuppressWarnings({"deprecation", "removal"})
884884
@Override
885885
protected void finalize() throws Throwable {
886886
this.free();

src/java/com/wolfssl/WolfSSLCertManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ public synchronized void free() throws IllegalStateException {
335335
}
336336
}
337337

338-
@SuppressWarnings("deprecation")
338+
@SuppressWarnings({"deprecation", "removal"})
339339
@Override
340340
protected void finalize() throws Throwable
341341
{

src/java/com/wolfssl/WolfSSLCertRequest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -853,7 +853,7 @@ public synchronized void free() {
853853
}
854854
}
855855

856-
@SuppressWarnings("deprecation")
856+
@SuppressWarnings({"deprecation", "removal"})
857857
@Override
858858
protected void finalize() throws Throwable
859859
{

src/java/com/wolfssl/WolfSSLCertificate.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2624,7 +2624,7 @@ public synchronized void free() {
26242624
}
26252625
}
26262626

2627-
@SuppressWarnings("deprecation")
2627+
@SuppressWarnings({"deprecation", "removal"})
26282628
@Override
26292629
protected void finalize() throws Throwable
26302630
{

src/java/com/wolfssl/WolfSSLContext.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2546,7 +2546,7 @@ WolfSSLDebug.INFO, getContextPtr(),
25462546
flushSessions(getContextPtr(), tm);
25472547
}
25482548

2549-
@SuppressWarnings("deprecation")
2549+
@SuppressWarnings({"deprecation", "removal"})
25502550
@Override
25512551
protected void finalize() throws Throwable
25522552
{

src/java/com/wolfssl/WolfSSLDebug.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,7 @@ public String format(LogRecord record) {
213213
Level level = record.getLevel();
214214
String levelStr = (level != null) ? level.toString() : "UNKNOWN";
215215

216+
@SuppressWarnings("deprecation")
216217
long threadId = record.getThreadID();
217218
String message = record.getMessage();
218219
if (message == null) {
@@ -233,6 +234,7 @@ public String format(LogRecord record) {
233234
* JSON formatter for wolfSSL logs
234235
*/
235236
private static class JSONFormatter extends Formatter {
237+
@SuppressWarnings("deprecation")
236238
@Override
237239
public String format(LogRecord record) {
238240
if (record == null) {

src/java/com/wolfssl/WolfSSLNameConstraints.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ public void free() {
239239
}
240240

241241
@Override
242-
@SuppressWarnings("deprecation")
242+
@SuppressWarnings({"deprecation", "removal"})
243243
protected void finalize() throws Throwable {
244244
try {
245245
free();

0 commit comments

Comments
 (0)