jdk/src/java.desktop/share/classes/javax/swing/text/MaskFormatter.java
changeset 26037 508779ce6619
parent 26001 991e1be0b235
parent 25859 3317bb8137f4
child 30462 507bcb03c954
equal deleted inserted replaced
25992:e9b05e933ddd 26037:508779ce6619
   647      * Subclassed to update the internal representation of the mask after
   647      * Subclassed to update the internal representation of the mask after
   648      * the default read operation has completed.
   648      * the default read operation has completed.
   649      */
   649      */
   650     private void readObject(ObjectInputStream s)
   650     private void readObject(ObjectInputStream s)
   651         throws IOException, ClassNotFoundException {
   651         throws IOException, ClassNotFoundException {
   652         s.defaultReadObject();
   652         ObjectInputStream.GetField f = s.readFields();
       
   653 
       
   654         validCharacters = (String) f.get("validCharacters", null);
       
   655         invalidCharacters = (String) f.get("invalidCharacters", null);
       
   656         placeholderString = (String) f.get("placeholderString", null);
       
   657         placeholder = f.get("placeholder", '\0');
       
   658         containsLiteralChars = f.get("containsLiteralChars", false);
       
   659         mask = (String) f.get("mask", null);
       
   660 
   653         try {
   661         try {
   654             updateInternalMask();
   662             updateInternalMask();
   655         } catch (ParseException pe) {
   663         } catch (ParseException pe) {
   656             // assert();
   664             // assert();
   657         }
   665         }