changeset 1804:7831b4f4de86

RT-25147 [FindBugs] GradientUtils$Point - A mutable static field could be changed by malicious code or by accident from another package.
author Martin Sladecek <martin.sladecek@oracle.com>
date Tue, 16 Oct 2012 14:37:12 +0200
parents f0a8403141d2
children bae4dedcad85
files javafx-ui-common/src/com/sun/javafx/scene/paint/GradientUtils.java
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/javafx-ui-common/src/com/sun/javafx/scene/paint/GradientUtils.java	Wed Sep 19 13:00:44 2012 -0400
+++ b/javafx-ui-common/src/com/sun/javafx/scene/paint/GradientUtils.java	Tue Oct 16 14:37:12 2012 +0200
@@ -39,8 +39,8 @@
 
     public static class Point {
 
-        public static Point MIN = new Point(0, true);
-        public static Point MAX = new Point(1, true);
+        public static final Point MIN = new Point(0, true);
+        public static final Point MAX = new Point(1, true);
         public double value;
         public boolean proportional;