]> source.dussan.org Git - poi.git/commitdiff
sonar fix
authorAndreas Beeker <kiwiwings@apache.org>
Thu, 17 Mar 2016 22:39:20 +0000 (22:39 +0000)
committerAndreas Beeker <kiwiwings@apache.org>
Thu, 17 Mar 2016 22:39:20 +0000 (22:39 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1735514 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/poi/sl/draw/PathGradientPaint.java

index cf4a89147ca7dd069e0ebc8b76d188efd4f43bbc..63cae11e9ef2366f0c77fbfa0f1b77c981fd8114 100644 (file)
@@ -38,8 +38,8 @@ class PathGradientPaint implements Paint {
     }\r
     \r
     public PathGradientPaint(Color colors[], float fractions[], int capStyle, int joinStyle) {\r
-        this.colors = colors;\r
-        this.fractions = fractions;\r
+        this.colors = colors.clone();\r
+        this.fractions = fractions.clone();\r
         this.capStyle = capStyle;\r
         this.joinStyle = joinStyle;\r
 \r