runelite-client: close properties input stream

This commit is contained in:
Adam
2018-06-16 13:06:01 -04:00
parent 3ad62abed5
commit d0a5b5c829

View File

@@ -50,9 +50,7 @@ public class RuneLiteProperties
@Inject @Inject
public RuneLiteProperties() public RuneLiteProperties()
{ {
final InputStream in = getClass().getResourceAsStream("runelite.properties"); try (InputStream in = getClass().getResourceAsStream("runelite.properties"))
try
{ {
properties.load(in); properties.load(in);
} }