# HG changeset patch # User alanb # Date 1515081051 0 # Node ID b2cd597479eacbb70ff88704eb825687576f9b73 # Parent 68c6f57c40d4dadae1415a72bc729e644a17aeed 8194644: Typo in ModuleDescriptor.read javadoc Reviewed-by: alanb Contributed-by: christoph.dreis@freenet.de diff -r 68c6f57c40d4 -r b2cd597479ea src/java.base/share/classes/java/lang/module/ModuleDescriptor.java --- a/src/java.base/share/classes/java/lang/module/ModuleDescriptor.java Thu Jan 04 04:22:28 2018 +0000 +++ b/src/java.base/share/classes/java/lang/module/ModuleDescriptor.java Thu Jan 04 15:50:51 2018 +0000 @@ -2521,7 +2521,7 @@ * the {@code packageFinder} throws an {@link UncheckedIOException} then * {@link IOException} cause will be re-thrown.

* - *

The module descriptor is read from the buffer stating at index + *

The module descriptor is read from the buffer starting at index * {@code p}, where {@code p} is the buffer's {@link ByteBuffer#position() * position} when this method is invoked. Upon return the buffer's position * will be equal to {@code p + n} where {@code n} is the number of bytes