@Test(expected = NullPointerException.class) public void checkNotNull_invalid() { Utils.checkNotNull(null, "data == null"); }
static <T> T checkNotNull(T object, String message) { if (object == null) { throw new NullPointerException(message); } return object; }
Utils { static <T> T checkNotNull(T object, String message) { if (object == null) { throw new NullPointerException(message); } return object; } }
Utils { static <T> T checkNotNull(T object, String message) { if (object == null) { throw new NullPointerException(message); } return object; } private  Utils(); }
Utils { static <T> T checkNotNull(T object, String message) { if (object == null) { throw new NullPointerException(message); } return object; } private  Utils();  }
Utils { static <T> T checkNotNull(T object, String message) { if (object == null) { throw new NullPointerException(message); } return object; } private  Utils();   }