Java tutorial
//package com.java2s; public class Main { private static <T> void checkParam(T param) { if (param == null) { throw new NullPointerException(); } } }