Here you can find the source of assertNotNull(Object obj)
Parameter | Description |
---|---|
obj | Object |
public final static void assertNotNull(Object obj)
//package com.java2s; //License from project: Open Source License public class Main { /**//from w w w.j ava 2 s . c om * Method assertNotNull. * * @param obj * Object */ public final static void assertNotNull(Object obj) { if (obj == null) { throw new RuntimeException("assertion: must not be null"); } } }