From a64e85fcc669e04adb2152547d748ef15ea99aa3 Mon Sep 17 00:00:00 2001 From: Arjen Poutsma Date: Mon, 22 Oct 2018 13:38:23 +0200 Subject: [PATCH] Javadoc --- .../java/org/springframework/core/io/buffer/DataBuffer.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/spring-core/src/main/java/org/springframework/core/io/buffer/DataBuffer.java b/spring-core/src/main/java/org/springframework/core/io/buffer/DataBuffer.java index b225e076193..052be52e154 100644 --- a/spring-core/src/main/java/org/springframework/core/io/buffer/DataBuffer.java +++ b/spring-core/src/main/java/org/springframework/core/io/buffer/DataBuffer.java @@ -220,6 +220,9 @@ public interface DataBuffer { * data buffer's content. Data between this data buffer and the returned buffer is * shared; though changes in the returned buffer's position will not be reflected * in the reading nor writing position of this data buffer. + *

Note that this method will not call + * {@link DataBufferUtils#retain(DataBuffer)} on the resulting slice: the reference + * count will not be increased. * @param index the index at which to start the slice * @param length the length of the slice * @return the specified slice of this data buffer