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 c7b95cf Disable warnings for imported code - need to be fixed upstream c7b95cf is described below commit c7b95cfbb4fe46bda6c4525574d5ba3d4176feff Author: Mark Thomas <ma...@apache.org> AuthorDate: Mon Aug 23 11:59:44 2021 +0100 Disable warnings for imported code - need to be fixed upstream --- java/org/apache/tomcat/dbcp/dbcp2/DelegatingStatement.java | 1 + java/org/apache/tomcat/util/http/fileupload/disk/DiskFileItem.java | 1 + 2 files changed, 2 insertions(+) diff --git a/java/org/apache/tomcat/dbcp/dbcp2/DelegatingStatement.java b/java/org/apache/tomcat/dbcp/dbcp2/DelegatingStatement.java index 4c150b4..c3c4a08 100644 --- a/java/org/apache/tomcat/dbcp/dbcp2/DelegatingStatement.java +++ b/java/org/apache/tomcat/dbcp/dbcp2/DelegatingStatement.java @@ -380,6 +380,7 @@ public class DelegatingStatement extends AbandonedTrace implements Statement { } } + @SuppressWarnings("deprecation") // Need Commons DBCP to address this @Override protected void finalize() throws Throwable { // This is required because of statement pooling. The poolable diff --git a/java/org/apache/tomcat/util/http/fileupload/disk/DiskFileItem.java b/java/org/apache/tomcat/util/http/fileupload/disk/DiskFileItem.java index 2f2c25d..bfe1884 100644 --- a/java/org/apache/tomcat/util/http/fileupload/disk/DiskFileItem.java +++ b/java/org/apache/tomcat/util/http/fileupload/disk/DiskFileItem.java @@ -545,6 +545,7 @@ public class DiskFileItem /** * Removes the file contents from the temporary storage. */ + @SuppressWarnings("deprecation") // Need Commons FileUpload to address this @Override protected void finalize() throws Throwable { if (dfos == null || dfos.isInMemory()) { --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org