mirror of
https://github.com/jlengrand/openapi-generator.git
synced 2026-05-12 00:21:18 +00:00
Update DefaultGenerator.java to call close()
Need to call out.close() after IOUtils.copy(in, out); when writing supporting files.
This commit is contained in:
committed by
GitHub
parent
8ccf9828e4
commit
da1e07af21
@@ -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