< prev index next >

src/java.desktop/share/classes/java/awt/image/ComponentSampleModel.java

Print this page

        

*** 1186,1196 **** lineOffset += scanlineStride; } } public boolean equals(Object o) { ! if ((o == null) || !(o instanceof ComponentSampleModel)) { return false; } ComponentSampleModel that = (ComponentSampleModel)o; return this.width == that.width && --- 1186,1196 ---- lineOffset += scanlineStride; } } public boolean equals(Object o) { ! if ((o == null) || (o.getClass() != getClass())) { return false; } ComponentSampleModel that = (ComponentSampleModel)o; return this.width == that.width &&
< prev index next >