src/java.base/share/classes/java/util/Currency.java
changeset 57956 e0b8b019d2f5
parent 53120 de9fd809bb47
child 58242 94bb65cb37d3
equal deleted inserted replaced
57955:18863bf3501f 57956:e0b8b019d2f5
     1 /*
     1 /*
     2  * Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2000, 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
   111  * @see java.math.BigDecimal
   111  * @see java.math.BigDecimal
   112  * @since 1.4
   112  * @since 1.4
   113  */
   113  */
   114 public final class Currency implements Serializable {
   114 public final class Currency implements Serializable {
   115 
   115 
       
   116     @java.io.Serial
   116     private static final long serialVersionUID = -158308464356906721L;
   117     private static final long serialVersionUID = -158308464356906721L;
   117 
   118 
   118     /**
   119     /**
   119      * ISO 4217 currency code for this currency.
   120      * ISO 4217 currency code for this currency.
   120      *
   121      *
   659     }
   660     }
   660 
   661 
   661     /**
   662     /**
   662      * Resolves instances being deserialized to a single instance per currency.
   663      * Resolves instances being deserialized to a single instance per currency.
   663      */
   664      */
       
   665     @java.io.Serial
   664     private Object readResolve() {
   666     private Object readResolve() {
   665         return getInstance(currencyCode);
   667         return getInstance(currencyCode);
   666     }
   668     }
   667 
   669 
   668     /**
   670     /**