7006948: FindBugs warning in IndexColorModel class
authorbae
Fri, 17 Dec 2010 13:18:08 +0300
changeset 7747 44fa19e4dc49
parent 7746 3cdbc9c4de5b
child 7748 26e6f5fc1bdb
7006948: FindBugs warning in IndexColorModel class Reviewed-by: igor, prr
jdk/src/share/classes/java/awt/image/IndexColorModel.java
--- a/jdk/src/share/classes/java/awt/image/IndexColorModel.java	Wed Dec 15 19:47:01 2010 +0300
+++ b/jdk/src/share/classes/java/awt/image/IndexColorModel.java	Fri Dec 17 13:18:08 2010 +0300
@@ -625,7 +625,7 @@
             }
             nBits[0] = nBits[1] = nBits[2] = 8;
         }
-        return nBits;
+        return nBits.clone();
     }
 
     /**