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 |
114 public static final ThaiBuddhistChronology INSTANCE = new ThaiBuddhistChronology(); |
114 public static final ThaiBuddhistChronology INSTANCE = new ThaiBuddhistChronology(); |
115 |
115 |
116 /** |
116 /** |
117 * Serialization version. |
117 * Serialization version. |
118 */ |
118 */ |
|
119 @java.io.Serial |
119 private static final long serialVersionUID = 2775954514031616474L; |
120 private static final long serialVersionUID = 2775954514031616474L; |
120 /** |
121 /** |
121 * Containing the offset to add to the ISO year. |
122 * Containing the offset to add to the ISO year. |
122 */ |
123 */ |
123 static final int YEARS_DIFFERENCE = 543; |
124 static final int YEARS_DIFFERENCE = 543; |
382 * </pre> |
383 * </pre> |
383 * |
384 * |
384 * @return the instance of {@code Ser}, not null |
385 * @return the instance of {@code Ser}, not null |
385 */ |
386 */ |
386 @Override |
387 @Override |
|
388 @java.io.Serial |
387 Object writeReplace() { |
389 Object writeReplace() { |
388 return super.writeReplace(); |
390 return super.writeReplace(); |
389 } |
391 } |
390 |
392 |
391 /** |
393 /** |
392 * Defend against malicious streams. |
394 * Defend against malicious streams. |
393 * |
395 * |
394 * @param s the stream to read |
396 * @param s the stream to read |
395 * @throws InvalidObjectException always |
397 * @throws InvalidObjectException always |
396 */ |
398 */ |
|
399 @java.io.Serial |
397 private void readObject(ObjectInputStream s) throws InvalidObjectException { |
400 private void readObject(ObjectInputStream s) throws InvalidObjectException { |
398 throw new InvalidObjectException("Deserialization via serialization delegate"); |
401 throw new InvalidObjectException("Deserialization via serialization delegate"); |
399 } |
402 } |
400 } |
403 } |