7032376: A type parameter isn't seen by using an web browser
authorrupashka
Wed, 13 Apr 2011 20:16:19 +0400
changeset 9222 7d19f2c40915
parent 9221 4bf78a7bfaca
child 9223 d331b7996fc3
7032376: A type parameter isn't seen by using an web browser Reviewed-by: malenkov
jdk/src/share/classes/javax/swing/Painter.java
--- a/jdk/src/share/classes/javax/swing/Painter.java	Tue Apr 12 18:58:30 2011 +0900
+++ b/jdk/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>
  *