changeset 1806:4dd0ce0f750e

Fix for RT-25148: [FindBugs] Toolkit.java - A mutable static field could be changed by malicious code or by accident from another package.
author Lubomir Nerad <lubomir.nerad@oracle.com>
date Tue, 16 Oct 2012 14:41:36 +0200
parents bae4dedcad85
children a49900764c1d
files javafx-ui-common/src/com/sun/javafx/tk/Toolkit.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/javafx-ui-common/src/com/sun/javafx/tk/Toolkit.java	Tue Oct 16 14:39:08 2012 +0200
+++ b/javafx-ui-common/src/com/sun/javafx/tk/Toolkit.java	Tue Oct 16 14:41:36 2012 +0200
@@ -116,7 +116,7 @@
     private static final String QUANTUM_TOOLKIT     = "com.sun.javafx.tk.quantum.QuantumToolkit";
     private static final String DEFAULT_TOOLKIT     = QUANTUM_TOOLKIT;
     
-    protected static Map gradientMap = new WeakHashMap();
+    private static final Map gradientMap = new WeakHashMap();
 
     private static String lookupToolkitClass(String name) {
         if ("prism".equalsIgnoreCase(name)) {