changeset 11851:8dc36a995ae0

4703110: java.awt.Canvas(GraphicaConfiguration): null reaction Reviewed-by: azvegint, ant
author serb
date Wed, 29 Apr 2015 02:55:39 +0300
parents 9b6ed21ae317
children 4af319de0ebe
files src/java.desktop/share/classes/java/awt/Canvas.java
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.desktop/share/classes/java/awt/Canvas.java	Tue Apr 28 14:23:03 2015 -0700
+++ b/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();