Fix typo in documentation of ModuleDescriptor.read() variant

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Fix typo in documentation of ModuleDescriptor.read() variant

Christoph Dreis
Hi,

I just found a typo in the documentation of ModuleDescriptor.read(ByteBuffer
bb, Supplier<Set<String>> packageFinder).

I'd be happy if the attached patch is reviewed and eventually sponsored.

Cheers,
Christoph
====== PATCH =======
diff -r 3a52333a5e57
src/java.base/share/classes/java/lang/module/ModuleDescriptor.java
--- a/src/java.base/share/classes/java/lang/module/ModuleDescriptor.java
Tue Jan 02 16:35:04 2018 -0500
+++ b/src/java.base/share/classes/java/lang/module/ModuleDescriptor.java
Wed Jan 03 13:42:27 2018 +0100
@@ -2521,7 +2521,7 @@
      * the {@code packageFinder} throws an {@link UncheckedIOException}
then
      * {@link IOException} cause will be re-thrown. </p>
      *
-     * <p> The module descriptor is read from the buffer stating at index
+     * <p> 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