< prev index next >

src/java.base/share/native/libjimage/imageFile.cpp

Print this page
@@ -402,11 +402,11 @@
          // Expand location attributes.
          ImageLocation location(data);
          // Make sure result is not a false positive.
          if (verify_location(location, path)) {
                  *size = (jlong)location.get_attribute(ImageLocation::ATTRIBUTE_UNCOMPRESSED);
-                 return offset;
+             return offset;
          }
      }
      return 0;            // not found
  }
  

@@ -433,11 +433,11 @@
          if (!(next = ImageStrings::starts_with(next, parent))) return false;
          if (*next++ != '/') return false;
      }
      // Get base name string.
      const char* base = location.get_attribute(ImageLocation::ATTRIBUTE_BASE, strings);
-     // Compare with basne name.
+     // Compare with base name.
      if (!(next = ImageStrings::starts_with(next, base))) return false;
      // Get extension string.
      const char* extension = location.get_attribute(ImageLocation::ATTRIBUTE_EXTENSION, strings);
      // If extension is not empty.
      if (*extension != '\0') {
< prev index next >