You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2021/07/27 18:31:56 UTC
[tomcat] branch main updated: Silence warnings we can't avoid
This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/main by this push:
new 7137cf9 Silence warnings we can't avoid
7137cf9 is described below
commit 7137cf9cc4573afca5b25b1d7789a2ab518a3cfd
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Tue Jul 27 19:31:45 2021 +0100
Silence warnings we can't avoid
---
java/org/apache/catalina/tribes/io/ReplicationStream.java | 3 ++-
java/org/apache/catalina/util/CustomObjectInputStream.java | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/java/org/apache/catalina/tribes/io/ReplicationStream.java b/java/org/apache/catalina/tribes/io/ReplicationStream.java
index bef441f..70265fd 100644
--- a/java/org/apache/catalina/tribes/io/ReplicationStream.java
+++ b/java/org/apache/catalina/tribes/io/ReplicationStream.java
@@ -134,7 +134,8 @@ public final class ReplicationStream extends ObjectInputStream {
classObjs[i] = cl;
}
try {
- // @SuppressWarnings("deprecation") Java 9
+ // No way to avoid this at the moment
+ @SuppressWarnings("deprecation")
Class<?> proxyClass = Proxy.getProxyClass(hasNonPublicInterface ? nonPublicLoader
: latestLoader, classObjs);
return proxyClass;
diff --git a/java/org/apache/catalina/util/CustomObjectInputStream.java b/java/org/apache/catalina/util/CustomObjectInputStream.java
index 539b601..49bdb74 100644
--- a/java/org/apache/catalina/util/CustomObjectInputStream.java
+++ b/java/org/apache/catalina/util/CustomObjectInputStream.java
@@ -185,7 +185,8 @@ public final class CustomObjectInputStream extends ObjectInputStream {
}
try {
- // @SuppressWarnings("deprecation") Java 9
+ // No way to avoid this at the moment
+ @SuppressWarnings("deprecation")
Class<?> proxyClass = Proxy.getProxyClass(classLoader, cinterfaces);
return proxyClass;
} catch (IllegalArgumentException e) {
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org