src/java.base/share/classes/java/io/OptionalDataException.java
changeset 58288 48e480e56aad
parent 57956 e0b8b019d2f5
child 58679 9c3209ff7550
equal deleted inserted replaced
58287:a7f16447085e 58288:48e480e56aad
    49 
    49 
    50     @java.io.Serial
    50     @java.io.Serial
    51     private static final long serialVersionUID = -8011121865681257820L;
    51     private static final long serialVersionUID = -8011121865681257820L;
    52 
    52 
    53     /*
    53     /*
    54      * Create an <code>OptionalDataException</code> with a length.
    54      * Create an {@code OptionalDataException} with a length.
    55      */
    55      */
    56     OptionalDataException(int len) {
    56     OptionalDataException(int len) {
    57         eof = false;
    57         eof = false;
    58         length = len;
    58         length = len;
    59     }
    59     }
    60 
    60 
    61     /*
    61     /*
    62      * Create an <code>OptionalDataException</code> signifying no
    62      * Create an {@code OptionalDataException} signifying no
    63      * more primitive data is available.
    63      * more primitive data is available.
    64      */
    64      */
    65     OptionalDataException(boolean end) {
    65     OptionalDataException(boolean end) {
    66         length = 0;
    66         length = 0;
    67         eof = end;
    67         eof = end;