4703110: java.awt.Canvas(GraphicaConfiguration): null reaction
authorserb
Wed, 29 Apr 2015 02:55:39 +0300
changeset 30485 2ae50a16ccae
parent 30484 9a49e0fb8f2a
child 30486 95884a96b883
4703110: java.awt.Canvas(GraphicaConfiguration): null reaction Reviewed-by: azvegint, ant
jdk/src/java.desktop/share/classes/java/awt/Canvas.java
--- a/jdk/src/java.desktop/share/classes/java/awt/Canvas.java	Tue Apr 28 14:23:03 2015 -0700
+++ b/jdk/src/java.desktop/share/classes/java/awt/Canvas.java	Wed Apr 29 02:55:39 2015 +0300
@@ -58,11 +58,13 @@
     }
 
     /**
-     * Constructs a new Canvas given a GraphicsConfiguration object.
+     * Constructs a new Canvas given a GraphicsConfiguration object. If null is
+     * passed, then the default GraphicsConfiguration will be used.
      *
-     * @param config a reference to a GraphicsConfiguration object.
+     * @param config a reference to a GraphicsConfiguration object or null
      *
      * @see GraphicsConfiguration
+     * @see Component#getGraphicsConfiguration()
      */
     public Canvas(GraphicsConfiguration config) {
         this();