"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "log4j-api/src/main/java/org/apache/logging/log4j/util/PropertyFilePropertySource.java" between
apache-log4j-2.11.1-src.tar.gz and apache-log4j-2.11.2-src.tar.gz

About: Apache Log4j 2 is a logging library for Java. Source distribution (Java).

PropertyFilePropertySource.java  (apache-log4j-2.11.1-src):PropertyFilePropertySource.java  (apache-log4j-2.11.2-src)
skipping to change at line 40 skipping to change at line 40
public PropertyFilePropertySource(final String fileName) { public PropertyFilePropertySource(final String fileName) {
super(loadPropertiesFile(fileName)); super(loadPropertiesFile(fileName));
} }
private static Properties loadPropertiesFile(final String fileName) { private static Properties loadPropertiesFile(final String fileName) {
final Properties props = new Properties(); final Properties props = new Properties();
for (final URL url : LoaderUtil.findResources(fileName)) { for (final URL url : LoaderUtil.findResources(fileName)) {
try (final InputStream in = url.openStream()) { try (final InputStream in = url.openStream()) {
props.load(in); props.load(in);
} catch (IOException e) { } catch (final IOException e) {
LowLevelLogUtil.logException("Unable to read " + url, e); LowLevelLogUtil.logException("Unable to read " + url, e);
} }
} }
return props; return props;
} }
@Override @Override
public int getPriority() { public int getPriority() {
return 0; return 0;
} }
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)