-
- All Implemented Interfaces:
public final class CoreKt
-
-
Field Summary
Fields Modifier and Type Field Description private static BooleandisableChecks
-
Method Summary
Modifier and Type Method Description BooleangetDisableChecks()Disable heavy and optional checks in runtime. voidsetDisableChecks(Boolean disableChecks)Disable heavy and optional checks in runtime. -
-
Method Detail
-
getDisableChecks
Boolean getDisableChecks()
Disable heavy and optional checks in runtime. This flag can be enabled to get a small performance boost. Do NOT do this on development (it could mask problems) and enable it on production only if you have tested your application extensively.
It's initial value is taken from the
DISABLE_CHECKSflag. See Jvm.systemFlag for details on how flags are checked on a JVM.This variable can be changed on code to affect only certain parts of the code, however this is not advised and should be done carefully.
-
setDisableChecks
void setDisableChecks(Boolean disableChecks)
Disable heavy and optional checks in runtime. This flag can be enabled to get a small performance boost. Do NOT do this on development (it could mask problems) and enable it on production only if you have tested your application extensively.
It's initial value is taken from the
DISABLE_CHECKSflag. See Jvm.systemFlag for details on how flags are checked on a JVM.This variable can be changed on code to affect only certain parts of the code, however this is not advised and should be done carefully.
-
-
-
-