Merge pull request #4434 from chasetec/master

Update DefaultGenerator.java to call close()
This commit is contained in:
wing328
2016-12-20 15:52:00 +08:00
committed by GitHub

View File

@@ -526,6 +526,7 @@ public class DefaultGenerator extends AbstractGenerator implements Generator {
if (in != null) {
LOGGER.info("writing file " + outputFile);
IOUtils.copy(in, out);
out.close();
} else {
LOGGER.error("can't open " + templateFile + " for input");
}