@Test public void shouldNotThrowAnyExceptionWhenObjectIsNotNull() { Object object = new Object(); try { Preconditions.checkNotNull(object, "object == null"); } catch (Exception e) { fail(e.getMessage()); } }
static void checkNotNull(final Object object, final String message) { if (object == null) { throw new NullPointerException(message); } }
Preconditions { static void checkNotNull(final Object object, final String message) { if (object == null) { throw new NullPointerException(message); } } }
Preconditions { static void checkNotNull(final Object object, final String message) { if (object == null) { throw new NullPointerException(message); } } private  Preconditions(); }
Preconditions { static void checkNotNull(final Object object, final String message) { if (object == null) { throw new NullPointerException(message); } } private  Preconditions();  }
Preconditions { static void checkNotNull(final Object object, final String message) { if (object == null) { throw new NullPointerException(message); } } private  Preconditions();   }