You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by re...@apache.org on 2024/12/10 12:35:20 UTC
(tomcat) branch 10.1.x updated: Add javadoc about the warning
This is an automated email from the ASF dual-hosted git repository.
remm pushed a commit to branch 10.1.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/10.1.x by this push:
new 05d5ad90c0 Add javadoc about the warning
05d5ad90c0 is described below
commit 05d5ad90c053962b2423837e7e5276aec1a5f655
Author: remm <re...@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 552ce94c3a..6ae744db2a 100644
--- a/java/org/apache/tomcat/util/buf/ByteBufferUtils.java
+++ b/java/org/apache/tomcat/util/buf/ByteBufferUtils.java
@@ -94,6 +94,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 (invokeCleanerMethod != null) {
try {
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org