Skip to content

Commit

Permalink
Add javadoc about the warning
Browse files Browse the repository at this point in the history
  • Loading branch information
rmaucher committed Dec 10, 2024
1 parent 70edbfa commit 05d5ad9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions java/org/apache/tomcat/util/buf/ByteBufferUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,10 @@ public static ByteBuffer expand(ByteBuffer in, int newSize) {
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 {
Expand Down

0 comments on commit 05d5ad9

Please sign in to comment.