Merge pull request #3131 from Abextm/dev-always-assert

runelite-client: Require assertions when developer mode is on
This commit is contained in:
Adam
2018-06-03 22:00:24 -04:00
committed by GitHub

View File

@@ -146,6 +146,16 @@ public class RuneLite
System.exit(0);
}
if (RuneLite.getOptions().has("developer-mode"))
{
boolean assertions = false;
assert assertions = true;
if (!assertions)
{
throw new RuntimeException("Developers should enable assertions; Add `-ea` to your JVM arguments`");
}
}
PROFILES_DIR.mkdirs();
// Setup logger