You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2020/07/20 16:19:07 UTC

[camel] branch master updated: BufferCaster: Added more problematic methods to Javadoc

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

acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/master by this push:
     new 6de63a9  BufferCaster: Added more problematic methods to Javadoc
6de63a9 is described below

commit 6de63a9e6fff67de90014fe895dd7e12595d6a67
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Mon Jul 20 18:17:05 2020 +0200

    BufferCaster: Added more problematic methods to Javadoc
---
 core/camel-util/src/main/java/org/apache/camel/util/BufferCaster.java | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/core/camel-util/src/main/java/org/apache/camel/util/BufferCaster.java b/core/camel-util/src/main/java/org/apache/camel/util/BufferCaster.java
index e4f84ad..0f1ea34 100644
--- a/core/camel-util/src/main/java/org/apache/camel/util/BufferCaster.java
+++ b/core/camel-util/src/main/java/org/apache/camel/util/BufferCaster.java
@@ -25,6 +25,8 @@ public final class BufferCaster {
     /**
      * Without this cast, when the code compiled by Java 9+ is executed on Java 8, it will throw
      * java.lang.NoSuchMethodError: Method flip()Ljava/nio/ByteBuffer; does not exist in class java.nio.ByteBuffer
+     * This is true for other method too: we list them here for completeness:
+     * position(int), limit(int), mark(), reset(), clear() and rewind()
      */
     @SuppressWarnings("RedundantCast")
     public static <T extends Buffer> Buffer cast(T byteBuffer) {