@Test(expected = IllegalArgumentException.class) public void testHandlingOfNullTypeArgumentForConstructor() { annotations(null); }
static Annotations annotations(AnnotatedElement annotatedElement) { if (annotatedElement == null) { throw new IllegalArgumentException("Method argument annotatedElement must not be null."); } return new Annotations(annotatedElement); }
Annotations { static Annotations annotations(AnnotatedElement annotatedElement) { if (annotatedElement == null) { throw new IllegalArgumentException("Method argument annotatedElement must not be null."); } return new Annotations(annotatedElement); } }
Annotations { static Annotations annotations(AnnotatedElement annotatedElement) { if (annotatedElement == null) { throw new IllegalArgumentException("Method argument annotatedElement must not be null."); } return new Annotations(annotatedElement); } private  Annotations(AnnotatedElement annotatedElement); }
Annotations { static Annotations annotations(AnnotatedElement annotatedElement) { if (annotatedElement == null) { throw new IllegalArgumentException("Method argument annotatedElement must not be null."); } return new Annotations(annotatedElement); } private  Annotations(AnnotatedElement annotatedElement); @SuppressWarnings("unchecked") T get(Class<T> type); }
Annotations { static Annotations annotations(AnnotatedElement annotatedElement) { if (annotatedElement == null) { throw new IllegalArgumentException("Method argument annotatedElement must not be null."); } return new Annotations(annotatedElement); } private  Annotations(AnnotatedElement annotatedElement); @SuppressWarnings("unchecked") T get(Class<T> type);  }