diff -r 4bf78a7bfaca -r 7d19f2c40915 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 @@
* 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.
*