Fail to close stream in DefaultPropertiesResolver
-------------------------------------------------

                 Key: CAMEL-4265
                 URL: https://issues.apache.org/jira/browse/CAMEL-4265
             Project: Camel
          Issue Type: Bug
    Affects Versions: 2.8.0, 2.7.3
         Environment: Any
            Reporter: tender edge
             Fix For: 2.9.0


    protected Properties loadPropertiesFromFilePath(CamelContext context, 
String path) throws IOException {
        if (path.startsWith("file:")) {
            path = ObjectHelper.after(path, "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.    

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to