< prev index next >

src/java.base/share/classes/java/util/jar/Attributes.java

Print this page

        

*** 511,521 **** /** * Computes the hash value for this attribute name. */ public int hashCode() { if (hashCode == -1) { ! hashCode = name.toLowerCase(Locale.ROOT).hashCode(); } return hashCode; } /** --- 511,521 ---- /** * Computes the hash value for this attribute name. */ public int hashCode() { if (hashCode == -1) { ! hashCode = String.CASE_INSENSITIVE_HASHER.applyAsInt(name); } return hashCode; } /**
< prev index next >