--- old/src/share/classes/java/io/StreamTokenizer.java 2012-01-23 00:18:51.000000000 -0800 +++ new/src/share/classes/java/io/StreamTokenizer.java 2012-01-23 00:18:50.000000000 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1995, 2005, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1995, 2012, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -28,7 +28,7 @@ import java.util.Arrays; /** - * The StreamTokenizer class takes an input stream and + * The {@code StreamTokenizer} class takes an input stream and * parses it into "tokens", allowing the tokens to be * read one at a time. The parsing process is controlled by a table * and a number of flags that can be set to various states. The @@ -36,7 +36,7 @@ * strings, and various comment styles. *

* Each byte read from the input stream is regarded as a character - * in the range '\u0000' through '\u00FF'. + * in the range {@code '\u005Cu0000'} through {@code '\u005Cu00FF'}. * The character value is used to look up five possible attributes of * the character: white space, alphabetic, * numeric, string quote, and comment character. @@ -53,8 +53,8 @@ *

* A typical application first constructs an instance of this class, * sets up the syntax tables, and then repeatedly loops calling the - * nextToken method in each iteration of the loop until - * it returns the value TT_EOF. + * {@code nextToken} method in each iteration of the loop until + * it returns the value {@code TT_EOF}. * * @author James Gosling * @see java.io.StreamTokenizer#nextToken() @@ -99,19 +99,19 @@ private static final byte CT_COMMENT = 16; /** - * After a call to the nextToken method, this field + * After a call to the {@code nextToken} method, this field * contains the type of the token just read. For a single character * token, its value is the single character, converted to an integer. * For a quoted string token, its value is the quote character. * Otherwise, its value is one of the following: *

*

@@ -160,8 +160,8 @@ * the string. *

* The current token is a word when the value of the - * ttype field is TT_WORD. The current token is - * a quoted string token when the value of the ttype field is + * {@code ttype} field is {@code TT_WORD}. The current token is + * a quoted string token when the value of the {@code ttype} field is * a quote character. *

* The initial value of this field is null. @@ -175,7 +175,7 @@ /** * If the current token is a number, this field contains the value * of that number. The current token is a number when the value of - * the ttype field is TT_NUMBER. + * the {@code ttype} field is {@code TT_NUMBER}. *

* The initial value of this field is 0.0. * @@ -201,14 +201,14 @@ * stream. The stream tokenizer is initialized to the following * default state: *