< prev index next >

src/java.base/share/classes/sun/text/normalizer/UCharacterIterator.java

Print this page

        

@@ -198,12 +198,11 @@
      * If the buffer capacity is not enough a exception is thrown. The capacity
      * of the fill in buffer should at least be equal to length of text in the
      * iterator obtained by calling <code>getLength()</code>.
      * <b>Usage:</b>
      *
-     * <code>
-     * <pre>
+     * <pre>{@code
      *         UChacterIterator iter = new UCharacterIterator.getInstance(text);
      *         char[] buf = new char[iter.getLength()];
      *         iter.getText(buf);
      *
      *         OR

@@ -215,19 +214,18 @@
      *                 break;
      *             }catch(IndexOutOfBoundsException e){
      *                 buf = new char[iter.getLength()];
      *             }
      *         }
-     * </pre>
-     * </code>
+     * }</pre>
      *
      * @param fillIn an array of chars to fill with the underlying UTF-16 code
      *         units.
      * @param offset the position within the array to start putting the data.
      * @return the number of code units added to fillIn, as a convenience
      * @exception IndexOutOfBounds exception if there is not enough
-     *            room after offset in the array, or if offset < 0.
+     *            room after offset in the array, or if offset {@literal <} 0.
      * @stable ICU 2.4
      */
     public abstract int getText(char[] fillIn, int offset);
 
     //// for StringPrep
< prev index next >