8130478: Reconsider "awt.toolkit" property usage in java.awt.Toolkit getDefaultToolkit() method
authoralexsch
Thu, 30 Jul 2015 12:31:20 +0400
changeset 32124 f5ee581efbb7
parent 32123 92824eb030c5
child 32125 008f0a0d17e0
8130478: Reconsider "awt.toolkit" property usage in java.awt.Toolkit getDefaultToolkit() method Reviewed-by: prr, serb
jdk/src/java.desktop/share/classes/java/awt/Toolkit.java
--- a/jdk/src/java.desktop/share/classes/java/awt/Toolkit.java	Wed Jul 29 20:32:35 2015 +0300
+++ b/jdk/src/java.desktop/share/classes/java/awt/Toolkit.java	Thu Jul 30 12:31:20 2015 +0400
@@ -519,13 +519,7 @@
      * <p>
      * If a system property named {@code "java.awt.headless"} is set
      * to {@code true} then the headless implementation
-     * of {@code Toolkit} is used.
-     * <p>
-     * If there is no {@code "java.awt.headless"} or it is set to
-     * {@code false} and there is a system property named
-     * {@code "awt.toolkit"},
-     * that property is treated as the name of a class that is a subclass
-     * of {@code Toolkit};
+     * of {@code Toolkit} is used,
      * otherwise the default platform-specific implementation of
      * {@code Toolkit} is used.
      * <p>