modules/graphics/src/main/java/com/sun/javafx/font/PrismCompositeFontResource.java

Print this page

        

*** 205,225 **** } if (!(obj instanceof PrismCompositeFontResource)) { return false; } final PrismCompositeFontResource other = (PrismCompositeFontResource)obj; ! ! return primaryResource.getFullName().equals(other.getFullName()); } - private int hash; @Override public int hashCode() { ! if (hash != 0) { ! return hash; ! } ! else { ! hash = primaryResource.getFullName().hashCode(); ! return hash; ! } } } --- 205,217 ---- } if (!(obj instanceof PrismCompositeFontResource)) { return false; } final PrismCompositeFontResource other = (PrismCompositeFontResource)obj; ! return primaryResource.equals(other.primaryResource); } @Override public int hashCode() { ! return primaryResource.hashCode(); } }