8208998: Typo in ModueInfo.java, field for ModuleHashes should be moduleHashes
authoralanb
Sun, 05 Aug 2018 19:16:31 +0100
changeset 51311 d93577466d8c
parent 51310 a694574b2def
child 51312 c00451b67854
8208998: Typo in ModueInfo.java, field for ModuleHashes should be moduleHashes Reviewed-by: alanb Contributed-by: christoph.dreis@freenet.de
src/java.base/share/classes/jdk/internal/module/ModuleInfo.java
--- a/src/java.base/share/classes/jdk/internal/module/ModuleInfo.java	Fri Aug 03 21:06:15 2018 -0700
+++ b/src/java.base/share/classes/jdk/internal/module/ModuleInfo.java	Sun Aug 05 19:16:31 2018 +0100
@@ -233,7 +233,7 @@
         Set<String> allPackages = null;
         String mainClass = null;
         ModuleTarget moduleTarget = null;
-        ModuleHashes moduelHashes = null;
+        ModuleHashes moduleHashes = null;
         ModuleResolution moduleResolution = null;
 
         for (int i = 0; i < attributes_count ; i++) {
@@ -267,7 +267,7 @@
 
                 case MODULE_HASHES :
                     if (parseHashes) {
-                        moduelHashes = readModuleHashesAttribute(in, cpool);
+                        moduleHashes = readModuleHashesAttribute(in, cpool);
                     } else {
                         in.skipBytes(length);
                     }
@@ -331,7 +331,7 @@
         ModuleDescriptor descriptor = builder.build();
         return new Attributes(descriptor,
                               moduleTarget,
-                              moduelHashes,
+                              moduleHashes,
                               moduleResolution);
     }