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
The following commit(s) were added to refs/heads/main by this push:
new 98c59d4 Fix deprecation warning
98c59d4 is described below
commit 98c59d40ab5ce84c66492e3373e9220ed86bb6ea
Author: Mark Thomas <[email protected]>
AuthorDate: Fri Jan 26 11:11:43 2024 +0000
Fix deprecation warning
---
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 3f7d168..0415181 100644
--- a/src/main/java/org/apache/tomcat/jakartaee/Migration.java
+++ b/src/main/java/org/apache/tomcat/jakartaee/Migration.java
@@ -304,7 +304,7 @@ public class Migration {
ZipArchiveOutputStream destZipStream = new
ZipArchiveOutputStream(CloseShieldOutputStream.wrap(dest))) {
ZipArchiveEntry srcZipEntry;
CRC32 crc32 = new CRC32();
- while ((srcZipEntry = srcZipStream.getNextZipEntry()) != null) {
+ while ((srcZipEntry = srcZipStream.getNextEntry()) != null) {
String srcName = srcZipEntry.getName();
if (isSignatureFile(srcName)) {
logger.log(Level.WARNING,
sm.getString("migration.skipSignatureFile", srcName));
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]