- try (InputStream inputStream = resource.openStream()) {
- List<String> lines = IOUtils.readLines(inputStream);
- for (String moduleInfoName : lines) {
- LOGGER.trace("Retrieve ModuleInfo({}, {})", moduleInfoName, bundle);
+ try {
+ for (String moduleInfoName : Resources.readLines(resource, Charsets.UTF_8)) {
+ LOG.trace("Retrieve ModuleInfo({}, {})", moduleInfoName, bundle);