@Test(expected = NullPointerException.class) public void checkNotNullForNull_throwsNullPointerException() throws Exception { Preconditions.checkNotNull(null); }
@Nonnull public static <T> T checkNotNull(@Nullable T reference) { if (reference == null) { throw new NullPointerException(); } return reference; }
Preconditions { @Nonnull public static <T> T checkNotNull(@Nullable T reference) { if (reference == null) { throw new NullPointerException(); } return reference; } }
Preconditions { @Nonnull public static <T> T checkNotNull(@Nullable T reference) { if (reference == null) { throw new NullPointerException(); } return reference; }  }
Preconditions { @Nonnull public static <T> T checkNotNull(@Nullable T reference) { if (reference == null) { throw new NullPointerException(); } return reference; }  @Nonnull static T checkNotNull(@Nullable T reference); }
Preconditions { @Nonnull public static <T> T checkNotNull(@Nullable T reference) { if (reference == null) { throw new NullPointerException(); } return reference; }  @Nonnull static T checkNotNull(@Nullable T reference);  }