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

remm pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/9.0.x by this push:
     new 972e33b95f Add javadoc about the warning
972e33b95f is described below

commit 972e33b95f1de447084b86e0f1076e43506857bd
Author: remm <r...@apache.org>
AuthorDate: Tue Dec 10 13:32:49 2024 +0100

    Add javadoc about the warning
---
 java/org/apache/tomcat/util/buf/ByteBufferUtils.java | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/java/org/apache/tomcat/util/buf/ByteBufferUtils.java 
b/java/org/apache/tomcat/util/buf/ByteBufferUtils.java
index 4593fabbad..e082fb36a4 100644
--- a/java/org/apache/tomcat/util/buf/ByteBufferUtils.java
+++ b/java/org/apache/tomcat/util/buf/ByteBufferUtils.java
@@ -116,6 +116,10 @@ public class ByteBufferUtils {
         return out;
     }
 
+    /**
+     * Clean specified direct buffer. This will cause an unavoidable warning 
on Java 24 and newer.
+     * @param buf the buffer to clean
+     */
     public static void cleanDirectBuffer(ByteBuffer buf) {
         if (cleanMethod != null) {
             try {


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

Reply via email to