Skip to content

Commit 63b2567

Browse files
committed
update to tzdb v2021e
see issue MenoData/Time4J#957
1 parent 5cde229 commit 63b2567

File tree

5 files changed

+10
-5
lines changed

5 files changed

+10
-5
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<modelVersion>4.0.0</modelVersion>
55
<groupId>net.time4j</groupId>
66
<artifactId>time4j-tzdata</artifactId>
7-
<version>5.0-2021d</version>
7+
<version>5.0-2021e</version>
88
<packaging>jar</packaging>
99
<name>Time4J-TZDATA</name>
1010

src/main/java/net/time4j/tz/repo/TimezoneRepositoryProviderSPI.java

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* -----------------------------------------------------------------------
3-
* Copyright © 2013-2019 Meno Hochschild, <http://www.menodata.de/>
3+
* Copyright © 2013-2021 Meno Hochschild, <http://www.menodata.de/>
44
* -----------------------------------------------------------------------
55
* This file (TimezoneRepositoryProviderSPI.java) is part of project Time4J.
66
*
@@ -77,6 +77,11 @@ public class TimezoneRepositoryProviderSPI
7777

7878
//~ Konstruktoren -----------------------------------------------------
7979

80+
/**
81+
* Standard constructor loading the repository.
82+
*
83+
* @throws IllegalStateException if loading the repository fails
84+
*/
8085
public TimezoneRepositoryProviderSPI() {
8186
super();
8287

@@ -192,7 +197,7 @@ public TimezoneRepositoryProviderSPI() {
192197

193198
this.leapsecs.put(
194199
PlainDate.of(year, month, dom),
195-
Integer.valueOf(shift));
200+
shift);
196201
}
197202

198203
int year = dis.readShort();
@@ -274,7 +279,7 @@ public TransitionHistory load(String zoneID) {
274279
return (TransitionHistory) ois.readObject();
275280
}
276281
} catch (IOException | ClassNotFoundException e) {
277-
e.printStackTrace();
282+
throw new IllegalStateException(e);
278283
}
279284

280285
return null;
10 Bytes
Binary file not shown.

src/test/java/net/time4j/tz/repo/RepositoryTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public class RepositoryTest {
3737
TZDATA.init();
3838
}
3939

40-
private static final String STD_VERSION = "2021d";
40+
private static final String STD_VERSION = "2021e";
4141
private static final ChronoFormatter<Moment> PARSER = Iso8601Format.EXTENDED_DATE_TIME_OFFSET;
4242

4343
private String propertyValue = null;
92.4 KB
Binary file not shown.

0 commit comments

Comments
 (0)