Created by: agilob
to reduce memory use and unlock them for use by operating system resource scheduler/allocator
Below you can see I run the same template manager test which opens and reads IO resources. I added extra line on debugger just to keep resources busy a bit longer for lsof to scan though them, this allows me to compare before/after results of my changes, as it would be much more difficult to automate this test inside maven, it's all manual.
List of files open by Linux checked with
lsof -f | grep '/home/agilob/Projects/openapi-generator/'
Also reduced complexity of reading dart specific keywords from external file. Autoclose input reader from ruby error stream
I do not know what the kotlin changes are, I promise ¯_(ツ)_/¯
Closes #1909 (closed) and fixes a few other unreported