static void checkNotNull ( Object o , String arg ) { if ( o == null ) { throw new IllegalArgumentException ( String . format ( "'%s' must not be null." , arg ) ) ; } }
Throws IllegalArgumentException if the given object is null .