Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
2.7.3, 2.8.0
-
None
-
Any
Description
protected Properties loadPropertiesFromFilePath(CamelContext context, String path) throws IOException {
if (path.startsWith("file:"))
InputStream is = new FileInputStream(path);
Properties answer = new Properties();
answer.load(is);
return answer;
}
Stream not closed before return, as well as in another method: loadPropertiesFromClasspath.