This is an automated email from the ASF dual-hosted git repository.
remm 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 23f2d1a864 Add javadoc about the warning
23f2d1a864 is described below
commit 23f2d1a864ade6a6df64a5b6f44643f982ca9052
Author: remm <[email protected]>
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: [email protected]
For additional commands, e-mail: [email protected]