<div dir="ltr">In the java.nio.ByteBuffer document, there is an example about floats<br><br> float  getFloat()<br> float  getFloat(int index)<br>  void  putFloat(float f)<br>  void  putFloat(int index, float f)<br><br>which says putFloat methods are void but this is wrong, they return ByteBuffer itself.<br><br>The oldest document I found as archive <a href="https://www.oracle.com/java/technologies/java-archive-142docs-downloads.html">https://www.oracle.com/java/technologies/java-archive-142docs-downloads.html</a>, the oldest document I found online <a href="https://docs.oracle.com/javase/1.5.0/docs/api/java/nio/ByteBuffer.html">https://docs.oracle.com/javase/1.5.0/docs/api/java/nio/ByteBuffer.html</a>, and the early access document for Java 19 <a href="https://download.java.net/java/early_access/loom/docs/api/java.base/java/nio/ByteBuffer.html">https://download.java.net/java/early_access/loom/docs/api/java.base/java/nio/ByteBuffer.html</a> have the same example.<br></div>