Java tutorial
//package com.java2s; public class Main { static <T> T checkNotNull(T paramT, String paramString) { if (paramT == null) throw new NullPointerException(paramString); return paramT; } }