poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kiwiwi...@apache.org
Subject svn commit: r1735514 - /poi/trunk/src/java/org/apache/poi/sl/draw/PathGradientPaint.java
Date Thu, 17 Mar 2016 22:39:20 GMT
Author: kiwiwings
Date: Thu Mar 17 22:39:20 2016
New Revision: 1735514

URL: http://svn.apache.org/viewvc?rev=1735514&view=rev
Log:
sonar fix

Modified:
    poi/trunk/src/java/org/apache/poi/sl/draw/PathGradientPaint.java

Modified: poi/trunk/src/java/org/apache/poi/sl/draw/PathGradientPaint.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/java/org/apache/poi/sl/draw/PathGradientPaint.java?rev=1735514&r1=1735513&r2=1735514&view=diff
==============================================================================
--- poi/trunk/src/java/org/apache/poi/sl/draw/PathGradientPaint.java (original)
+++ poi/trunk/src/java/org/apache/poi/sl/draw/PathGradientPaint.java Thu Mar 17 22:39:20 2016
@@ -38,8 +38,8 @@ class PathGradientPaint implements Paint
     }
     
     public PathGradientPaint(Color colors[], float fractions[], int capStyle, int joinStyle)
{
-        this.colors = colors;
-        this.fractions = fractions;
+        this.colors = colors.clone();
+        this.fractions = fractions.clone();
         this.capStyle = capStyle;
         this.joinStyle = joinStyle;
 



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org


Mime
View raw message