Summary
Change the ByteBuffer class specification to show that the putFloat methods are not void but return the ByteBuffer instance.
Problem
In the Access to binary data section of the ByteBuffer class specification, the putFloat methods are shown as being void when they actually return a ByteBuffer.
Solution
In the Access to binary data section of the ByteBuffer specification, change
void putFloat
to
ByteBuffer putFloat
Specification
--- a/src/java.base/share/classes/java/nio/X-Buffer.java.template
+++ b/src/java.base/share/classes/java/nio/X-Buffer.java.template
@@ -150,10 +150,11 @@ import jdk.internal.util.ArraysSupport;
* values, for example, this class defines:
*
* <blockquote><pre>
- * float {@link #getFloat()}
- * float {@link #getFloat(int) getFloat(int index)}
- * void {@link #putFloat(float) putFloat(float f)}
- * void {@link #putFloat(int,float) putFloat(int index, float f)}</pre></blockquote>
+ * float {@link #getFloat()}
+ * float {@link #getFloat(int) getFloat(int index)}
+ * ByteBuffer {@link #putFloat(float) putFloat(float f)}
+ * ByteBuffer {@link #putFloat(int,float) putFloat(int index, float f)}
+ * </pre></blockquote>
*
* <p> Corresponding methods are defined for the types {@code char,
* short, int, long}, and {@code double}. The index
- csr of
-
JDK-8295025 (bf) ByteBuffer "Access to binary data" section suggests putFloat is void
-
- Resolved
-