Lines Matching defs:ann2
200 AnnotationWithException ann1, ann2;
203 ann2 = HolderE2.class.getAnnotation(AnnotationWithException.class);
208 Assert.assertNotNull(ann2);
210 testEquals(ann1, ann2, true); // this throws AnnotationFormatError
249 AnnotationWithHashCode ann1, ann2;
252 ann2 = HolderF2.class.getAnnotation(AnnotationWithHashCode.class);
257 Assert.assertNotNull(ann2);
259 testEquals(ann1, ann2, true); // this throws AnnotationFormatError
299 AnnotationWithDefaultMember ann1, ann2;
302 ann2 = HolderG2.class.getAnnotation(AnnotationWithDefaultMember.class);
307 Assert.assertNotNull(ann2);
309 testEquals(ann1, ann2, true); // this throws AnnotationFormatError
407 private static void testEquals(Annotation ann1, Annotation ann2, boolean expectedEquals) {
411 boolean gotEquals = ann1.equals(ann2);
419 System.out.println("\n" + ann1 + ".equals(" + ann2 + ") = " + result);