mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-13 08:53:20 +00:00
ICU-4530 Add missing serialVersionUID field, make constructor public.
X-SVN-Rev: 18713
This commit is contained in:
parent
123c068c1d
commit
506e4bb739
2 changed files with 11 additions and 2 deletions
icu4j/src/com/ibm/icu/impl
|
@ -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());
|
||||
}
|
||||
|
|
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue