From 2a4ebf9324f50ba31a354c5b0e2f0431887f7689 Mon Sep 17 00:00:00 2001 From: bae Date: Fri, 17 Dec 2010 13:18:08 +0300 Subject: [PATCH] 7006948: FindBugs warning in IndexColorModel class Reviewed-by: igor, prr --- src/share/classes/java/awt/image/IndexColorModel.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/share/classes/java/awt/image/IndexColorModel.java b/src/share/classes/java/awt/image/IndexColorModel.java index 969d524f9..a76f2d5ff 100644 --- a/src/share/classes/java/awt/image/IndexColorModel.java +++ b/src/share/classes/java/awt/image/IndexColorModel.java @@ -625,7 +625,7 @@ public class IndexColorModel extends ColorModel { } nBits[0] = nBits[1] = nBits[2] = 8; } - return nBits; + return nBits.clone(); } /** -- GitLab