changeset 14226:34ed742d3f0e

8153363: Redundant check for number of components in PackedColorModel.equals() method Reviewed-by: prr, flar
author jdv
date Tue, 05 Apr 2016 14:52:31 +0530
parents fe244f96f156
children 3510f04dd509
files src/java.desktop/share/classes/java/awt/image/PackedColorModel.java
diffstat 1 files changed, 0 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.desktop/share/classes/java/awt/image/PackedColorModel.java	Tue Apr 05 10:59:01 2016 +0300
+++ b/src/java.desktop/share/classes/java/awt/image/PackedColorModel.java	Tue Apr 05 14:52:31 2016 +0530
@@ -404,9 +404,6 @@
 
         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;