• Andy Wilkinson's avatar
    Close Reader used by MustacheViewResolver when compiling a Template · b56eef23
    Andy Wilkinson authored
    Previously, MustacheViewResolver would create an InputStreamReader
    that wraps the template Resource's InputStream but would fail to close
    the Reader. When the InputStream was a FileInputStream, this caused
    the resolver to leak file handles.
    
    This commit updates the resolver to close the Reader once the Template
    has been compiled, thereby allowing any underlying resources to be
    cleaned up immediately, rather than having to wait for the JVM to exit.
    
    Closes gh-4921
    b56eef23
Name
Last commit
Last update
docs Loading commit data...
eclipse Loading commit data...
spring-boot Loading commit data...
spring-boot-actuator Loading commit data...
spring-boot-autoconfigure Loading commit data...
spring-boot-cli Loading commit data...
spring-boot-dependencies Loading commit data...
spring-boot-deployment-tests Loading commit data...
spring-boot-docs Loading commit data...
spring-boot-full-build Loading commit data...
spring-boot-integration-tests Loading commit data...
spring-boot-parent Loading commit data...
spring-boot-samples Loading commit data...
spring-boot-starters Loading commit data...
spring-boot-tools Loading commit data...
spring-boot-versions Loading commit data...
.gitignore Loading commit data...
.settings-template.xml Loading commit data...
.travis.yml Loading commit data...
CONTRIBUTING.adoc Loading commit data...
LICENSE.txt Loading commit data...
README.adoc Loading commit data...
pom.xml Loading commit data...