(Timezone time4j)
| 980 | } |
| 981 | |
| 982 | @Override |
| 983 | public TimeZone from(Timezone time4j) { |
| 984 | |
| 985 | if (time4j.getHistory() == null) { |
| 986 | String id = time4j.getID().canonical(); |
| 987 | if (id.startsWith(JUT_PROVIDER)) { |
| 988 | id = id.substring(JUT_PROVIDER.length()); |
| 989 | } |
| 990 | return TimeZone.getTimeZone(id); |
| 991 | } else { |
| 992 | return new OldApiTimezone(time4j); |
| 993 | } |
| 994 | |
| 995 | } |
| 996 | |
| 997 | @Override |
| 998 | public Class<TimeZone> getSourceType() { |
nothing calls this directly
no test coverage detected