< prev index next >

src/java.base/share/classes/java/text/ChoiceFormat.java

Print this page

        

*** 166,175 **** --- 166,176 ---- * @since 1.1 */ public class ChoiceFormat extends NumberFormat { // Proclaim serial compatibility with 1.1 FCS + @java.io.Serial private static final long serialVersionUID = 1795184449645032964L; /** * Sets the pattern. * @param newPattern See the class description.
*** 526,535 **** --- 527,537 ---- /** * After reading an object from the input stream, do a simple verification * to maintain class invariants. * @throws InvalidObjectException if the objects read from the stream is invalid. */ + @java.io.Serial private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException { in.defaultReadObject(); if (choiceLimits.length != choiceFormats.length) { throw new InvalidObjectException( "limits and format arrays of different length.");
< prev index next >