8153363: Redundant check for number of components in PackedColorModel.equals() method

Reviewed-by: prr, flar
This commit is contained in:
Jayathirth D V 2016-04-05 14:52:31 +05:30
parent a120ac732a
commit 3b618308c3

View File

@ -404,9 +404,6 @@ public abstract class PackedColorModel extends ColorModel {
PackedColorModel cm = (PackedColorModel) obj;
int numC = cm.getNumComponents();
if (numC != numComponents) {
return false;
}
for(int i=0; i < numC; i++) {
if (maskArray[i] != cm.getMask(i)) {
return false;