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-jakartaee-migration.git
commit 136e41c6593e5967b6f134e50c15945ca668d193 Author: Mark Thomas <ma...@apache.org> AuthorDate: Wed Jul 3 16:28:27 2024 +0100 Avoid deprecated constructor --- src/main/java/org/apache/tomcat/jakartaee/Migration.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/apache/tomcat/jakartaee/Migration.java b/src/main/java/org/apache/tomcat/jakartaee/Migration.java index 0415181..5c99f4d 100644 --- a/src/main/java/org/apache/tomcat/jakartaee/Migration.java +++ b/src/main/java/org/apache/tomcat/jakartaee/Migration.java @@ -353,7 +353,7 @@ public class Migration { // Create the destination in memory SeekableInMemoryByteChannel destByteChannel = new SeekableInMemoryByteChannel(); - try (ZipFile srcZipFile = new ZipFile(srcByteChannel); + try (ZipFile srcZipFile = ZipFile.builder().setSeekableByteChannel(srcByteChannel).get(); ZipArchiveOutputStream destZipStream = new ZipArchiveOutputStream(destByteChannel)) { Enumeration<ZipArchiveEntry> entries = srcZipFile.getEntries(); while (entries.hasMoreElements()) { --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org