@Test public void requireNonNull_returnsArg() { final SimpleClass expected = new SimpleClass(); final SimpleClass actual = Utils.requireNonNull(expected); Assert.assertSame(expected, actual); }
static <T> T requireNonNull(T obj) { if (obj == null) throw new NullPointerException(); return obj; }
Utils { static <T> T requireNonNull(T obj) { if (obj == null) throw new NullPointerException(); return obj; } }
Utils { static <T> T requireNonNull(T obj) { if (obj == null) throw new NullPointerException(); return obj; }  }
Utils { static <T> T requireNonNull(T obj) { if (obj == null) throw new NullPointerException(); return obj; }   }
Utils { static <T> T requireNonNull(T obj) { if (obj == null) throw new NullPointerException(); return obj; }    }