Skip to content

Commit

Permalink
Little improvment
Browse files Browse the repository at this point in the history
  • Loading branch information
rafabene committed Oct 23, 2012
1 parent 21f9ebd commit f36ec7a
Showing 1 changed file with 5 additions and 9 deletions.
Expand Up @@ -22,17 +22,13 @@ public class ContainerDirectoryParser {

@PostConstruct
void parse() throws IOException {
try {
ObjectMapper objectMapper = new ObjectMapper();
containers = objectMapper.readValue(containerDirectoryLocationProvider.getUrl(),
new TypeReference<List<Container>>() {
});
} catch (IOException e) {
throw e;
}
ObjectMapper objectMapper = new ObjectMapper();
List<Container> list = objectMapper.readValue(containerDirectoryLocationProvider.getUrl(), new TypeReference<List<Container>>() {
});
containers = Collections.unmodifiableList(list);
}

public List<Container> getContainers() throws IOException {
return Collections.unmodifiableList(containers);
return containers;
}
}

0 comments on commit f36ec7a

Please sign in to comment.