The method loadStyle(URL) in com.simsilica.lemur.style.StyleLoader doesn't close the InputStream.
I would change it in this way:
@@ -158,8 +158,8 @@
}
public void loadStyle( URL u ) {
- try {
- loadStyle(u.toString(), new InputStreamReader(u.openStream()));
+ try( Reader in = new InputStreamReader(u.openStream()) ) {
+ loadStyle(u.toString(), in);
} catch( IOException e ) {
throw new RuntimeException("Error opening stream for:" + u, e);
}
The method loadStyle(URL) in com.simsilica.lemur.style.StyleLoader doesn't close the InputStream.
I would change it in this way: