jdk/src/java.base/share/classes/java/text/SimpleDateFormat.java
changeset 32649 2ee9017c7597
parent 31061 fead7d86d75f
child 32847 9409488183a6
equal deleted inserted replaced
32648:1fa861caf840 32649:2ee9017c7597
   454 
   454 
   455     /**
   455     /**
   456      * Saved numberFormat and pattern.
   456      * Saved numberFormat and pattern.
   457      * @see SimpleDateFormat#checkNegativeNumberExpression
   457      * @see SimpleDateFormat#checkNegativeNumberExpression
   458      */
   458      */
   459     transient private NumberFormat originalNumberFormat;
   459     private transient NumberFormat originalNumberFormat;
   460     transient private String originalNumberPattern;
   460     private transient String originalNumberPattern;
   461 
   461 
   462     /**
   462     /**
   463      * The minus sign to be used with format and parse.
   463      * The minus sign to be used with format and parse.
   464      */
   464      */
   465     transient private char minusSign = '-';
   465     private transient char minusSign = '-';
   466 
   466 
   467     /**
   467     /**
   468      * True when a negative sign follows a number.
   468      * True when a negative sign follows a number.
   469      * (True as default in Arabic.)
   469      * (True as default in Arabic.)
   470      */
   470      */
   471     transient private boolean hasFollowingMinusSign = false;
   471     private transient boolean hasFollowingMinusSign = false;
   472 
   472 
   473     /**
   473     /**
   474      * True if standalone form needs to be used.
   474      * True if standalone form needs to be used.
   475      */
   475      */
   476     transient private boolean forceStandaloneForm = false;
   476     private transient boolean forceStandaloneForm = false;
   477 
   477 
   478     /**
   478     /**
   479      * The compiled pattern.
   479      * The compiled pattern.
   480      */
   480      */
   481     transient private char[] compiledPattern;
   481     private transient char[] compiledPattern;
   482 
   482 
   483     /**
   483     /**
   484      * Tags for the compiled pattern.
   484      * Tags for the compiled pattern.
   485      */
   485      */
   486     private final static int TAG_QUOTE_ASCII_CHAR       = 100;
   486     private static final int TAG_QUOTE_ASCII_CHAR       = 100;
   487     private final static int TAG_QUOTE_CHARS            = 101;
   487     private static final int TAG_QUOTE_CHARS            = 101;
   488 
   488 
   489     /**
   489     /**
   490      * Locale dependent digit zero.
   490      * Locale dependent digit zero.
   491      * @see #zeroPaddingNumber
   491      * @see #zeroPaddingNumber
   492      * @see java.text.DecimalFormatSymbols#getZeroDigit
   492      * @see java.text.DecimalFormatSymbols#getZeroDigit
   493      */
   493      */
   494     transient private char zeroDigit;
   494     private transient char zeroDigit;
   495 
   495 
   496     /**
   496     /**
   497      * The symbols used by this formatter for week names, month names,
   497      * The symbols used by this formatter for week names, month names,
   498      * etc.  May not be null.
   498      * etc.  May not be null.
   499      * @serial
   499      * @serial
   508      * @serial
   508      * @serial
   509      * @since 1.1.4
   509      * @since 1.1.4
   510      */
   510      */
   511     private Date defaultCenturyStart;
   511     private Date defaultCenturyStart;
   512 
   512 
   513     transient private int defaultCenturyStartYear;
   513     private transient int defaultCenturyStartYear;
   514 
   514 
   515     private static final int MILLIS_PER_MINUTE = 60 * 1000;
   515     private static final int MILLIS_PER_MINUTE = 60 * 1000;
   516 
   516 
   517     // For time zones that have no names, use strings GMT+minutes and
   517     // For time zones that have no names, use strings GMT+minutes and
   518     // GMT-minutes. For instance, in France the time zone is GMT+60.
   518     // GMT-minutes. For instance, in France the time zone is GMT+60.