Java Assert Not Null assertNotNull(Object expression)

Here you can find the source of assertNotNull(Object expression)

Description

assert Not Null

License

Apache License

Declaration

private static void assertNotNull(Object expression) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    public static final String TRANSFORM_WITHOUT_CHECK = "Expression must be checked before applying transformation";

    private static void assertNotNull(Object expression) {
        assert expression != null : TRANSFORM_WITHOUT_CHECK;
    }/*from   ww w.j a v  a 2  s . c o  m*/
}

Related

  1. assertNotNull(final String name, final T object)
  2. assertNotNull(final String param, final Object value)
  3. assertNotNull(final T object, final String message)
  4. assertNotNull(final T value, final String param)
  5. assertNotNull(Object argumentThatMustNotBeNull, String argumentName)
  6. assertNotNull(Object o)
  7. assertNotNull(Object obj)
  8. assertNotNull(Object obj)
  9. assertNotNull(Object obj, RuntimeException ex)