From c4acb85ea0880b6e36475bd1f6aaa98fb2cbdac1 Mon Sep 17 00:00:00 2001 From: Egor Cherniak Date: Thu, 2 Jun 2022 09:54:19 +0300 Subject: [PATCH] Fix file reading (#9) --- src/main/java/dev/vality/beholder/util/FileUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/dev/vality/beholder/util/FileUtil.java b/src/main/java/dev/vality/beholder/util/FileUtil.java index 84b9067..869f565 100644 --- a/src/main/java/dev/vality/beholder/util/FileUtil.java +++ b/src/main/java/dev/vality/beholder/util/FileUtil.java @@ -15,7 +15,7 @@ public class FileUtil { public static List readRegions(Resource resource) throws IOException { final ObjectMapper objectMapper = new ObjectMapper(); return objectMapper.readValue( - resource.getFile(), + resource.getInputStream(), new TypeReference<>() { }); }