mirror of
https://github.com/valitydev/beholder.git
synced 2024-11-06 00:35:19 +00:00
Fix file reading (#9)
This commit is contained in:
parent
1c5db22684
commit
c4acb85ea0
@ -15,7 +15,7 @@ public class FileUtil {
|
|||||||
public static List<Region> readRegions(Resource resource) throws IOException {
|
public static List<Region> readRegions(Resource resource) throws IOException {
|
||||||
final ObjectMapper objectMapper = new ObjectMapper();
|
final ObjectMapper objectMapper = new ObjectMapper();
|
||||||
return objectMapper.readValue(
|
return objectMapper.readValue(
|
||||||
resource.getFile(),
|
resource.getInputStream(),
|
||||||
new TypeReference<>() {
|
new TypeReference<>() {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user