forked from loafle/openapi-generator-original
Merge pull request #4434 from chasetec/master
Update DefaultGenerator.java to call close()
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user