From f6240ca88b5f063acf2a109b826656bb26583dc6 Mon Sep 17 00:00:00 2001 From: rupashka Date: Wed, 13 Apr 2011 20:16:19 +0400 Subject: [PATCH] 7032376: A type parameter isn't seen by using an web browser Reviewed-by: malenkov --- src/share/classes/javax/swing/Painter.java | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/share/classes/javax/swing/Painter.java b/src/share/classes/javax/swing/Painter.java index ca9c214f3..7b2e3ef11 100644 --- a/src/share/classes/javax/swing/Painter.java +++ b/src/share/classes/javax/swing/Painter.java @@ -45,14 +45,16 @@ import java.awt.Graphics2D; * Painter that only works with subclasses of {@link java.awt.Component}. * In that case, when the Painter is declared, you may declare that * it requires a Component, allowing the paint method to be type safe. Ex: - *

- *     Painter p = new Painter() {
- *         public void paint(Graphics2D g, Component c, int width, int height) {
- *             g.setColor(c.getBackground());
- *             //and so forth
- *         }
+ * 
+ * {@code
+ * Painter p = new Painter() {
+ *     public void paint(Graphics2D g, Component c, int width, int height) {
+ *         g.setColor(c.getBackground());
+ *         //and so forth
  *     }
- * 

+ * } + * } + *

* *

This interface makes no guarantees of threadsafety.

* -- GitLab