Class LooseValidations

java.lang.Object
com.amazonaws.xray.utils.LooseValidations

public final class LooseValidations
extends java.lang.Object
Utilities for validating parameters loosely. By default, validation is disabled. Enable error logging by setting the system property -Dcom.amazonaws.xray.validationMode=log or throwing exceptions by setting the system property -Dcom.amazonaws.xray.validationMode=throw.
  • Method Summary

    Modifier and Type Method Description
    static boolean checkNotNull​(java.lang.Object obj, java.lang.String message)
    Returns whether obj is null.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • checkNotNull

      @CheckReturnValue public static boolean checkNotNull​(java.lang.Object obj, java.lang.String message)
      Returns whether obj is null.