ICU-4530 Add missing serialVersionUID field, make constructor public.

X-SVN-Rev: 18713
This commit is contained in:
Eric Mader 2005-10-25 00:07:49 +00:00
parent 123c068c1d
commit 506e4bb739
2 changed files with 11 additions and 2 deletions
icu4j/src/com/ibm/icu/impl

View file

@ -64,8 +64,11 @@ public class JDKTimeZone extends TimeZone {
* Constructs a JDKTimeZone given a java.util.TimeZone reference
* which must not be null.
* @param tz the time zone to wrap
*
* @internal
* @deprecated This is an internal API and should not be used by client code.
*/
protected JDKTimeZone(java.util.TimeZone tz) {
public JDKTimeZone(java.util.TimeZone tz) {
zone = tz;
super.setID(zone.getID());
}

View file

@ -32,6 +32,9 @@ import java.util.Date;
*/
public class TimeZoneAdapter extends java.util.TimeZone {
// Generated by serialver from JDK 1.4.1_01
static final long serialVersionUID = -2040072218820018557L;
/**
* The contained com.ibm.icu.util.TimeZone object. Must not be null.
* We delegate all methods to this object.
@ -58,8 +61,11 @@ public class TimeZoneAdapter extends java.util.TimeZone {
/**
* Constructs an adapter for a com.ibm.icu.util.TimeZone object.
*
* @internal
* @deprecated This is an internal and should not be used by client code.
*/
private TimeZoneAdapter(TimeZone zone) {
public TimeZoneAdapter(TimeZone zone) {
this.zone = zone;
super.setID(zone.getID());
}