java.util.Calendar.java (cache): New private static field.
authorBryce McKinlay <mckinlay@redhat.com>
Sat, 10 Jul 2004 02:38:55 +0000 (02:38 +0000)
committerBryce McKinlay <bryce@gcc.gnu.org>
Sat, 10 Jul 2004 02:38:55 +0000 (03:38 +0100)
commit3ee7acd137ffd4df6edcff788f9a75eb1f533ffc
treea21213186246ae4988b6aedc426b713636af538b
parent284d6a1fc39e6c7bcfca33d3f67a69547c646207
java.util.Calendar.java (cache): New private static field.

2004-07-09  Bryce McKinlay  <mckinlay@redhat.com>

* java.util.Calendar.java (cache): New private static field. Cached
mappings of locales->calendar classes.
(ctorArgTypes): New private static field. Singleton argument for
calendar class constructor lookup.
(getInstance): Cache Locale->Calendar class mappings using HashMap.
Optimize by bypassing reflection instantiation for the
GregorianCalendar case.

From-SVN: r84438
libjava/ChangeLog
libjava/java/util/Calendar.java