Java tutorial
//package com.java2s; //License from project: Apache License public class Main { static void checkNotNull(Object o, String name) { if (o == null) throw new IllegalArgumentException(String.format("%s must be not null", name)); } }