Close various resource inputstreams

This commit is contained in:
Adam
2021-07-04 15:14:05 -04:00
parent 6b11afd907
commit 5d420ae57b
12 changed files with 76 additions and 44 deletions

View File

@@ -38,9 +38,8 @@ public class OverlayIndex
static
{
InputStream indexStream = OverlayIndex.class.getResourceAsStream("/runelite/index");
try (DataInputStream in = new DataInputStream(indexStream))
try (InputStream indexStream = OverlayIndex.class.getResourceAsStream("/runelite/index");
DataInputStream in = new DataInputStream(indexStream))
{
int id;
while ((id = in.readInt()) != -1)