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/09/27 20:54:27 UTC

[tomcat] 01/02: Update comments

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

commit 8a4eb09453a870891a2bf488faacbcc6de480f89
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Mon Sep 27 19:23:51 2021 +0100

    Update comments
---
 java/org/apache/catalina/webresources/JarContents.java | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/java/org/apache/catalina/webresources/JarContents.java b/java/org/apache/catalina/webresources/JarContents.java
index c7da5e2..6346d52 100644
--- a/java/org/apache/catalina/webresources/JarContents.java
+++ b/java/org/apache/catalina/webresources/JarContents.java
@@ -58,7 +58,6 @@ public final class JarContents {
         bits1 = new BitSet(TABLE_SIZE);
         bits2 = new BitSet(TABLE_SIZE);
 
-        // Enumerations. When will they update this API?!
         while (entries.hasMoreElements()) {
             JarEntry entry = entries.nextElement();
             String name = entry.getName();
@@ -127,7 +126,7 @@ public final class JarContents {
             startPos++;
         }
 
-        // calculate the hash lazyly and return a boolean value for this path
+        // calculate the hash lazily and return a boolean value for this path
         return (bits1.get(hashcode(path, startPos, HASH_PRIME_1) % TABLE_SIZE) &&
                 bits2.get(hashcode(path, startPos, HASH_PRIME_2) % TABLE_SIZE));
     }

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org