changeset 3964:b83978b25d1d

7032376: A type parameter isn't seen by using an web browser Reviewed-by: malenkov
author rupashka
date Wed, 13 Apr 2011 20:16:19 +0400
parents e4090d232e69
children a7ea2d624d40
files src/share/classes/javax/swing/Painter.java
diffstat 1 files changed, 9 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/javax/swing/Painter.java	Tue Apr 12 18:58:30 2011 +0900
+++ b/src/share/classes/javax/swing/Painter.java	Wed Apr 13 20:16:19 2011 +0400
@@ -45,14 +45,16 @@
  * <code>Painter</code> that only works with subclasses of {@link java.awt.Component}.
  * In that case, when the <code>Painter</code> is declared, you may declare that
  * it requires a <code>Component</code>, allowing the paint method to be type safe. Ex:
- * <pre><code>
- *     Painter<Component> p = new Painter<Component>() {
- *         public void paint(Graphics2D g, Component c, int width, int height) {
- *             g.setColor(c.getBackground());
- *             //and so forth
- *         }
+ * <pre>
+ * {@code
+ * Painter<Component> p = new Painter<Component>() {
+ *     public void paint(Graphics2D g, Component c, int width, int height) {
+ *         g.setColor(c.getBackground());
+ *         //and so forth
  *     }
- * </code></pre></p>
+ * }
+ * }
+ * </pre></p>
  *
  * <p>This interface makes no guarantees of threadsafety.</p>
  *