Skip to content

Commit 915eaf3

Browse files
committed
Polish
1 parent 746cc0f commit 915eaf3

File tree

1 file changed

+5
-1
lines changed
  • spring-boot-tools/spring-boot-loader/src/test/java/org/springframework/boot/loader/jar

1 file changed

+5
-1
lines changed

spring-boot-tools/spring-boot-loader/src/test/java/org/springframework/boot/loader/jar/JarFileTests.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,13 @@ public void getName() throws Exception {
170170

171171
@Test
172172
public void getSize() throws Exception {
173-
try (ZipFile zip = new ZipFile(this.rootJarFile)) {
173+
ZipFile zip = new ZipFile(this.rootJarFile);
174+
try {
174175
assertThat(this.jarFile.size()).isEqualTo(zip.size());
175176
}
177+
finally {
178+
zip.close();
179+
}
176180
}
177181

178182
@Test

0 commit comments

Comments
 (0)