test/jdk/java/lang/annotation/typeAnnotations/TestObjectMethods.java
changeset 55387 761b86d5563d
parent 55090 c1ad2862d0dd
child 58679 9c3209ff7550
equal deleted inserted replaced
55386:2f4e214781a1 55387:761b86d5563d
   175                                    "\n\n");
   175                                    "\n\n");
   176             }
   176             }
   177         }
   177         }
   178     }
   178     }
   179 
   179 
   180     private static final Pattern annotationRegex = Pattern.compile("@TestObjectMethods\\$AnnotType\\(value=(\\p{Digit})+\\)");
   180     private static final Pattern annotationRegex = Pattern.compile("@TestObjectMethods\\$AnnotType\\((\\p{Digit})+\\)");
   181 
   181 
   182     static void testGetAnnotations(Class<?> clazz, boolean annotationsExpectedOnMethods) {
   182     static void testGetAnnotations(Class<?> clazz, boolean annotationsExpectedOnMethods) {
   183         System.err.println("Testing getAnnotations on methods of class " + clazz.getName());
   183         System.err.println("Testing getAnnotations on methods of class " + clazz.getName());
   184         Method[] methods = clazz.getDeclaredMethods();
   184         Method[] methods = clazz.getDeclaredMethods();
   185         for (Method m : methods) {
   185         for (Method m : methods) {