src/share/classes/javax/security/auth/callback/CallbackHandler.java

Print this page

        

@@ -77,11 +77,11 @@
      * The following example is provided to help demonstrate what an
      * <code>handle</code> method implementation might look like.
      * This example code is for guidance only.  Many details,
      * including proper error handling, are left out for simplicity.
      *
-     * <pre>
+     * <pre>{@code
      * public void handle(Callback[] callbacks)
      * throws IOException, UnsupportedCallbackException {
      *
      *   for (int i = 0; i < callbacks.length; i++) {
      *      if (callbacks[i] instanceof TextOutputCallback) {

@@ -131,11 +131,11 @@
      *
      * // Reads user password from given input stream.
      * private char[] readPassword(InputStream in) throws IOException {
      *    // insert code to read a user password from the input stream
      * }
-     * </pre>
+     * }</pre>
      *
      * @param callbacks an array of <code>Callback</code> objects provided
      *          by an underlying security service which contains
      *          the information requested to be retrieved or displayed.
      *