Asserts that an object is null. If it is not, an {@link AssertionError}
is thrown with the given message.

@param message the identifying message for the {@link AssertionError} (<code>null</code>
okay)
@param object Object to check or <code>null</code>
970856
public static void assertNull(String message, Object object) {
        if (object == null) {
            return;
        }
        failNotNull(message, object);
    }
406196
function AssertionError( message, startFunc ) {
		var self = this;

		self.name = 'Assertion Error';
		self.message = message;

		if ( Error.captureStackTrace ) {
			Error.captureStackTrace( self, startFunc );
		}
	}
85705
@SuppressWarnings("WeakerAccess")
    public static void assertIdentity(String message, Object expected, Object actual) {
        if (expected != actual) {
            fail(message);
        }
    }
874679
static void assertEquals(String message, Object comparison1, Object comparison2)
    {
        if(comparison1 == comparison2)
        {
            return;
        }
        if(comparison1.equals(comparison2))
        {
            return;
        }

        System.err.println(message);
    }
90963
public static <T> T assertNotNull(T object, ExceptionType exceptionType, String message, Object... args) {
        if (object == null) {
            if (exceptionType == null) {
                exceptionType = ExceptionType.ILLEGAL_ARGUMENT;
            }

            throw exceptionType.newInstance(getMessage(message, args,
                                                       "[Assertion failed] - the argument is required; it must not be null"));
        }

        return object;
    }
801199
public static void notNull(Object object, String message) {
        if (object == null)
            throw new IllegalArgumentException(message);
        /*
        * 如果是字符串，我不希望你的字符串是一个空字符串，那样没有任何意义，
        * 但是你仍然坚持要为空，那你可以添加一个空格(" ")试试
        * */
        if (object instanceof String)
            if (StringUtils.isEmpty((String) object))
                throw new IllegalArgumentException(message);
    }
1114089
public static void assertBodyNotPresent(String msg, SipMessage sipMessage) {
    assertNotNull("Null assert object passed in", sipMessage);
    assertFalse(msg, sipMessage.getContentLength() > 0);
  }
195025
static public void assertEquals(String message, long expected, long actual) {
        assertEquals(message, Long.valueOf(expected), Long.valueOf(actual));
    }
779820
public static void assertBodyPresent(String msg, SipMessage sipMessage) {
    assertNotNull("Null assert object passed in", sipMessage);
    assertTrue(msg, sipMessage.getContentLength() > 0);
  }
805587
public static void assertTrue(boolean expression, String message, Object... args) {
        assertTrue(expression, null, message, args);
    }
90210
public static void assertNull(String message, Object o) {
        if (o == null) {
            pass(message);
        } else {
            fail(message, "'" + o + "' is not null");
        }
    }
241491
public static void assertTree(String message, String rootText, String preorder, Tree tree)
    {
        assertNotNull("tree should be non-null", tree);
        assertEquals(message + " (asserting type of root)", rootText, tree.getText());
        assertPreordered(message, preorder, tree);
    }
266988
protected static <U> U nullCheck(U value, String message) {
        if (value == null) {
            throw new NullPointerException(message);
        }
        return value;
    }
1373964
public static <T> T assertNull(T object, String message, Object... args) {
        return assertNull(object, null, message, args);
    }
1190332
public static void error(Object message) {
		log(Level.ERROR, message, null, (Object[])null);
	}
853889
public static void notNullAndNoNullValues(final Object[] objects, final String message) {
        notNull(objects, message);
        for (Object object : objects) {
            notNull(object, message);
        }
    }
872681
protected void assertValid(String s, String message) {
		if (s == null || s.length() == 0) {
			throw new RuntimeException(message);
		}
	}