This is an automated email from the ASF dual-hosted git repository.

markt-asf 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 c6f6c80882 Remove deprecated code
c6f6c80882 is described below

commit c6f6c80882e889a8eac37bb4324386639bfdd60e
Author: Mark Thomas <[email protected]>
AuthorDate: Wed Nov 11 20:17:52 2026 +0000

    Remove deprecated code
---
 java/org/apache/tomcat/util/buf/StringCache.java | 38 ------------------------
 1 file changed, 38 deletions(-)

diff --git a/java/org/apache/tomcat/util/buf/StringCache.java 
b/java/org/apache/tomcat/util/buf/StringCache.java
index f481a3d075..c5b26ac987 100644
--- a/java/org/apache/tomcat/util/buf/StringCache.java
+++ b/java/org/apache/tomcat/util/buf/StringCache.java
@@ -210,25 +210,6 @@ public class StringCache {
     }
 
 
-    /**
-     * Returns the total number of cache lookups performed. If the total is 
more than {@link Integer#MAX_VALUE},
-     * {@link Integer#MAX_VALUE} is returned.
-     *
-     * @return the access count
-     *
-     * @deprecated Use {@link #getAccessCountLong()}. This method will be 
removed in Tomcat 12.0.x onwards.
-     */
-    @Deprecated
-    public int getAccessCount() {
-        long accessCount = StringCache.accessCount;
-        if (accessCount > Integer.MAX_VALUE) {
-            return Integer.MAX_VALUE;
-        } else {
-            return (int) accessCount;
-        }
-    }
-
-
     /**
      * Returns the total number of cache lookups performed.
      *
@@ -238,25 +219,6 @@ public class StringCache {
         return accessCount;
     }
 
-    /**
-     * Returns the number of cache hits. If the total is more than {@link 
Integer#MAX_VALUE}, {@link Integer#MAX_VALUE}
-     * is returned.
-     *
-     * @return the hit count
-     *
-     * @deprecated Use {@link #getHitCountLong()}. This method will be removed 
in Tomcat 12.0.x onwards.
-     */
-    @Deprecated
-    public int getHitCount() {
-        long hitCount = StringCache.hitCount;
-        if (hitCount > Integer.MAX_VALUE) {
-            return Integer.MAX_VALUE;
-        } else {
-            return (int) hitCount;
-        }
-    }
-
-
     /**
      * Returns the number of cache hits.
      *


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to