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 |
211 static final long NANOS_PER_DAY = NANOS_PER_HOUR * HOURS_PER_DAY; |
211 static final long NANOS_PER_DAY = NANOS_PER_HOUR * HOURS_PER_DAY; |
212 |
212 |
213 /** |
213 /** |
214 * Serialization version. |
214 * Serialization version. |
215 */ |
215 */ |
|
216 @java.io.Serial |
216 private static final long serialVersionUID = 6414437269572265201L; |
217 private static final long serialVersionUID = 6414437269572265201L; |
217 |
218 |
218 /** |
219 /** |
219 * The hour. |
220 * The hour. |
220 */ |
221 */ |
1672 * } |
1673 * } |
1673 * </pre> |
1674 * </pre> |
1674 * |
1675 * |
1675 * @return the instance of {@code Ser}, not null |
1676 * @return the instance of {@code Ser}, not null |
1676 */ |
1677 */ |
|
1678 @java.io.Serial |
1677 private Object writeReplace() { |
1679 private Object writeReplace() { |
1678 return new Ser(Ser.LOCAL_TIME_TYPE, this); |
1680 return new Ser(Ser.LOCAL_TIME_TYPE, this); |
1679 } |
1681 } |
1680 |
1682 |
1681 /** |
1683 /** |
1682 * Defend against malicious streams. |
1684 * Defend against malicious streams. |
1683 * |
1685 * |
1684 * @param s the stream to read |
1686 * @param s the stream to read |
1685 * @throws InvalidObjectException always |
1687 * @throws InvalidObjectException always |
1686 */ |
1688 */ |
|
1689 @java.io.Serial |
1687 private void readObject(ObjectInputStream s) throws InvalidObjectException { |
1690 private void readObject(ObjectInputStream s) throws InvalidObjectException { |
1688 throw new InvalidObjectException("Deserialization via serialization delegate"); |
1691 throw new InvalidObjectException("Deserialization via serialization delegate"); |
1689 } |
1692 } |
1690 |
1693 |
1691 void writeExternal(DataOutput out) throws IOException { |
1694 void writeExternal(DataOutput out) throws IOException { |