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

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


The following commit(s) were added to refs/heads/master by this push:
     new 4399181  [hotfix][flink-core] fix errors in MemorySegment description
4399181 is described below

commit 4399181844a1657b78d32e1e543f63a621f07441
Author: leesf <490081...@qq.com>
AuthorDate: Wed Mar 6 23:24:14 2019 +0800

    [hotfix][flink-core] fix errors in MemorySegment description
    
    This closes #7916.
---
 .../src/main/java/org/apache/flink/core/memory/MemorySegment.java | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git 
a/flink-core/src/main/java/org/apache/flink/core/memory/MemorySegment.java 
b/flink-core/src/main/java/org/apache/flink/core/memory/MemorySegment.java
index 39b6d9c..e747324 100644
--- a/flink-core/src/main/java/org/apache/flink/core/memory/MemorySegment.java
+++ b/flink-core/src/main/java/org/apache/flink/core/memory/MemorySegment.java
@@ -991,7 +991,7 @@ public abstract class MemorySegment {
         * @return The long value at the given position.
         *
         * @throws IndexOutOfBoundsException Thrown, if the index is negative, 
or larger than the segment
-        *                                   size minus 8.
+        *                                   size minus 4.
         */
        public final float getFloatLittleEndian(int index) {
                return Float.intBitsToFloat(getIntLittleEndian(index));
@@ -1009,7 +1009,7 @@ public abstract class MemorySegment {
         * @return The long value at the given position.
         *
         * @throws IndexOutOfBoundsException Thrown, if the index is negative, 
or larger than the segment
-        *                                   size minus 8.
+        *                                   size minus 4.
         */
        public final float getFloatBigEndian(int index) {
                return Float.intBitsToFloat(getIntBigEndian(index));
@@ -1045,7 +1045,7 @@ public abstract class MemorySegment {
         * @param value The long value to be written.
         *
         * @throws IndexOutOfBoundsException Thrown, if the index is negative, 
or larger than the segment
-        *                                   size minus 8.
+        *                                   size minus 4.
         */
        public final void putFloatLittleEndian(int index, float value) {
                putIntLittleEndian(index, Float.floatToRawIntBits(value));
@@ -1063,7 +1063,7 @@ public abstract class MemorySegment {
         * @param value The long value to be written.
         *
         * @throws IndexOutOfBoundsException Thrown, if the index is negative, 
or larger than the segment
-        *                                   size minus 8.
+        *                                   size minus 4.
         */
        public final void putFloatBigEndian(int index, float value) {
                putIntBigEndian(index, Float.floatToRawIntBits(value));

Reply via email to