< prev index next >
src/java.net.http/share/classes/java/net/http/HttpRequest.java
Print this page
rev 50037 : 8202745: Remove hyphens from "out-of-bounds".
@@ -596,11 +596,11 @@
* @param buf the byte array containing the body
* @param offset the offset of the first byte
* @param length the number of bytes to use
* @return a BodyPublisher
* @throws IndexOutOfBoundsException if the sub-range is defined to be
- * out-of-bounds
+ * out of bounds
*/
public static BodyPublisher ofByteArray(byte[] buf, int offset, int length) {
Objects.checkFromIndexSize(offset, length, buf.length);
return new RequestPublishers.ByteArrayPublisher(buf, offset, length);
}
< prev index next >