equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2012, 2018, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2012, 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 |
128 implements ChronoLocalDate, Serializable { |
128 implements ChronoLocalDate, Serializable { |
129 |
129 |
130 /** |
130 /** |
131 * Serialization version. |
131 * Serialization version. |
132 */ |
132 */ |
|
133 @java.io.Serial |
133 private static final long serialVersionUID = -305327627230580483L; |
134 private static final long serialVersionUID = -305327627230580483L; |
134 |
135 |
135 /** |
136 /** |
136 * The underlying ISO local date. |
137 * The underlying ISO local date. |
137 */ |
138 */ |
717 * Defend against malicious streams. |
718 * Defend against malicious streams. |
718 * |
719 * |
719 * @param s the stream to read |
720 * @param s the stream to read |
720 * @throws InvalidObjectException always |
721 * @throws InvalidObjectException always |
721 */ |
722 */ |
|
723 @java.io.Serial |
722 private void readObject(ObjectInputStream s) throws InvalidObjectException { |
724 private void readObject(ObjectInputStream s) throws InvalidObjectException { |
723 throw new InvalidObjectException("Deserialization via serialization delegate"); |
725 throw new InvalidObjectException("Deserialization via serialization delegate"); |
724 } |
726 } |
725 |
727 |
726 /** |
728 /** |
734 * out.writeByte(get(DAY_OF_MONTH)); |
736 * out.writeByte(get(DAY_OF_MONTH)); |
735 * </pre> |
737 * </pre> |
736 * |
738 * |
737 * @return the instance of {@code Ser}, not null |
739 * @return the instance of {@code Ser}, not null |
738 */ |
740 */ |
|
741 @java.io.Serial |
739 private Object writeReplace() { |
742 private Object writeReplace() { |
740 return new Ser(Ser.JAPANESE_DATE_TYPE, this); |
743 return new Ser(Ser.JAPANESE_DATE_TYPE, this); |
741 } |
744 } |
742 |
745 |
743 void writeExternal(DataOutput out) throws IOException { |
746 void writeExternal(DataOutput out) throws IOException { |