8153363: Redundant check for number of components in PackedColorModel.equals() method
Reviewed-by: prr, flar
This commit is contained in:
parent
a120ac732a
commit
3b618308c3
@ -404,9 +404,6 @@ public abstract class PackedColorModel extends ColorModel {
|
|||||||
|
|
||||||
PackedColorModel cm = (PackedColorModel) obj;
|
PackedColorModel cm = (PackedColorModel) obj;
|
||||||
int numC = cm.getNumComponents();
|
int numC = cm.getNumComponents();
|
||||||
if (numC != numComponents) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
for(int i=0; i < numC; i++) {
|
for(int i=0; i < numC; i++) {
|
||||||
if (maskArray[i] != cm.getMask(i)) {
|
if (maskArray[i] != cm.getMask(i)) {
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user