diff --git a/Mage.Verify/src/main/java/mage/verify/MtgJson.java b/Mage.Verify/src/main/java/mage/verify/MtgJson.java index 5eb355d472..e6de2c378e 100644 --- a/Mage.Verify/src/main/java/mage/verify/MtgJson.java +++ b/Mage.Verify/src/main/java/mage/verify/MtgJson.java @@ -2,7 +2,6 @@ package mage.verify; import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.ObjectMapper; -import mage.util.StreamUtils; import java.io.File; import java.io.FileInputStream; @@ -133,14 +132,9 @@ public final class MtgJson { } stream = new FileInputStream(file); } - ZipInputStream zipInputStream = null; - try { - zipInputStream = new ZipInputStream(stream); + try (ZipInputStream zipInputStream = new ZipInputStream(stream)) { zipInputStream.getNextEntry(); return new ObjectMapper().readValue(zipInputStream, ref); - } finally { - StreamUtils.closeQuietly(zipInputStream); - StreamUtils.closeQuietly(stream); } }