diff --git a/src/share/classes/java/util/Formattable.java b/src/share/classes/java/util/Formattable.java index f7e1e509d12d0b4eb412217dfe641a9cbb9de965..fa87e9c70223a741b5b4f6b2f93717461246ee46 100644 --- a/src/share/classes/java/util/Formattable.java +++ b/src/share/classes/java/util/Formattable.java @@ -36,14 +36,14 @@ import java.io.IOException; * For example, the following class prints out different representations of a * stock's name depending on the flags and length constraints: * - * {@code + *
 {@code
  *   import java.nio.CharBuffer;
  *   import java.util.Formatter;
  *   import java.util.Formattable;
  *   import java.util.Locale;
  *   import static java.util.FormattableFlags.*;
  *
- *  ...
+ *   ...
  *
  *   public class StockName implements Formattable {
  *       private String symbol, companyName, frenchCompanyName;
@@ -89,12 +89,12 @@ import java.io.IOException;
  *           return String.format("%s - %s", symbol, companyName);
  *       }
  *   }
- * }
+ * }
* *

When used in conjunction with the {@link java.util.Formatter}, the above * class produces the following output for various format strings. * - * {@code + *

 {@code
  *   Formatter fmt = new Formatter();
  *   StockName sn = new StockName("HUGE", "Huge Fruit, Inc.",
  *                                "Fruit Titanesque, Inc.");
@@ -104,7 +104,7 @@ import java.io.IOException;
  *   fmt.format("%-10.8s", sn);              //   -> "HUGE      "
  *   fmt.format("%.12s", sn);                //   -> "Huge Fruit,*"
  *   fmt.format(Locale.FRANCE, "%25s", sn);  //   -> "   Fruit Titanesque, Inc."
- * }
+ * }
* *

Formattables are not necessarily safe for multithreaded access. Thread * safety is optional and may be enforced by classes that extend and implement