Java tutorial
//package com.java2s; //License from project: Apache License import android.support.annotation.NonNull; import android.support.annotation.Nullable; public class Main { public static <T> void assertNotNull(@Nullable T object, @NonNull String parameterName) throws AssertionError { if (object == null) throw new AssertionError(parameterName + " can't be null."); } }