@LevelUpApi(contract=INTERNAL) @ThreadSafe public final class PreconditionUtil extends Object
Modifier and Type | Method and Description |
---|---|
static void |
assertNotNull(Object objectToCheck,
String objectName) |
public static void assertNotNull(Object objectToCheck, String objectName)
objectToCheck
- Reference to check for nullness.objectName
- Human-readable name of the object reference, to be formatted into any
errors generated by this method.AssertionError
- if objectToCheck
is null and
CoreLibConstants.IS_PARAMETER_CHECKING_ENABLED
.