modules/graphics/src/main/java/com/sun/javafx/font/PrismCompositeFontResource.java
Print this page
@@ -205,21 +205,13 @@
}
if (!(obj instanceof PrismCompositeFontResource)) {
return false;
}
final PrismCompositeFontResource other = (PrismCompositeFontResource)obj;
-
- return primaryResource.getFullName().equals(other.getFullName());
+ return primaryResource.equals(other.primaryResource);
}
- private int hash;
@Override
public int hashCode() {
- if (hash != 0) {
- return hash;
- }
- else {
- hash = primaryResource.getFullName().hashCode();
- return hash;
- }
+ return primaryResource.hashCode();
}
}