changeset 3267:6a219e5ccfd7

7006948: FindBugs warning in IndexColorModel class Reviewed-by: igor, prr
author bae
date Fri, 17 Dec 2010 13:18:08 +0300
parents 9d0eebb55003
children 33a0f66771d5
files src/share/classes/java/awt/image/IndexColorModel.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/java/awt/image/IndexColorModel.java	Wed Dec 15 19:47:01 2010 +0300
+++ b/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();
     }
 
     /**