equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1996, 2005, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1996, 2019, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
45 * @author unascribed |
45 * @author unascribed |
46 * @since 1.1 |
46 * @since 1.1 |
47 */ |
47 */ |
48 public class OptionalDataException extends ObjectStreamException { |
48 public class OptionalDataException extends ObjectStreamException { |
49 |
49 |
|
50 @java.io.Serial |
50 private static final long serialVersionUID = -8011121865681257820L; |
51 private static final long serialVersionUID = -8011121865681257820L; |
51 |
52 |
52 /* |
53 /* |
53 * Create an <code>OptionalDataException</code> with a length. |
54 * Create an {@code OptionalDataException} with a length. |
54 */ |
55 */ |
55 OptionalDataException(int len) { |
56 OptionalDataException(int len) { |
56 eof = false; |
57 eof = false; |
57 length = len; |
58 length = len; |
58 } |
59 } |
59 |
60 |
60 /* |
61 /* |
61 * Create an <code>OptionalDataException</code> signifying no |
62 * Create an {@code OptionalDataException} signifying no |
62 * more primitive data is available. |
63 * more primitive data is available. |
63 */ |
64 */ |
64 OptionalDataException(boolean end) { |
65 OptionalDataException(boolean end) { |
65 length = 0; |
66 length = 0; |
66 eof = end; |
67 eof = end; |