< prev index next >

test/langtools/tools/javac/annotations/typeAnnotations/referenceinfos/MethodParameters.java

Print this page
8200128: Fix some "annoations" typos
Reviewed-by: alanb


 206             genericLocation = { 0, 0 }, paramIndex = 1)
 207     @TADescription(annotation = "RTBs", type = METHOD_FORMAL_PARAMETER,
 208             genericLocation = { 0, 0 }, paramIndex = 1)
 209     public String methodParamAsArrayRepeatableAnnotation2() {
 210         return "void test(Object b, @RTA @RTA @RTB @RTB String [] a) { }";
 211     }
 212 
 213     @TADescription(annotation = "RTAs", type = METHOD_FORMAL_PARAMETER,
 214             genericLocation = { 0, 0 }, paramIndex = 1)
 215     @TADescription(annotation = "RTBs", type = METHOD_FORMAL_PARAMETER,
 216             genericLocation = { 0, 0 }, paramIndex = 1)
 217     public String methodParamAsArrayRepeatableAnnotation3() {
 218         return "void test(Object b, @RTA @RTA @RTB @RTB String [] a) { }";
 219     }
 220 
 221     @TADescription(annotation = "RTAs", type = METHOD_FORMAL_PARAMETER, paramIndex = 1)
 222     @TADescription(annotation = "RTBs", type = METHOD_FORMAL_PARAMETER,
 223             genericLocation = { 0, 0 }, paramIndex = 1)
 224     @TADescription(annotation = "RTCs", type = METHOD_FORMAL_PARAMETER,
 225             genericLocation = { 0, 0, 0, 0 }, paramIndex = 1)
 226     public String methodParamAsVarargRepeatableAnnoattion() {
 227         return "void test(Object b, @RTC @RTC String @RTA @RTA [] @RTB @RTB ... a) { }";
 228     }
 229 
 230     @TADescription(annotation = "RTAs", type = METHOD_FORMAL_PARAMETER, paramIndex = 1)
 231     @TADescription(annotation = "RTBs", type = METHOD_FORMAL_PARAMETER,
 232             genericLocation = { 0, 0 }, paramIndex = 1)
 233     @TADescription(annotation = "RTCs", type = METHOD_FORMAL_PARAMETER,
 234             genericLocation = { 0, 0, 0, 0 }, paramIndex = 1)
 235     public String methodParamAsFQVarargRepeatableAnnotation() {
 236         return "void test(Object b, java.lang.@RTC @RTC String @RTA @RTA [] @RTB @RTB ... a) { }";
 237     }
 238 
 239     // Smoke tests
 240     @TADescription(annotation = "RTAs", type = METHOD_FORMAL_PARAMETER, paramIndex = 0)
 241     public String interfaceMethodParamAsObjectRepeatableAnnotation() {
 242         return "interface %TEST_CLASS_NAME% { void test(@RTA @RTA Object a); }";
 243     }
 244 
 245     @TADescription(annotation = "RTAs", type = METHOD_FORMAL_PARAMETER, paramIndex = 2)
 246     public String abstractMethodParamAsObjectRepeatableAnnotation() {


 206             genericLocation = { 0, 0 }, paramIndex = 1)
 207     @TADescription(annotation = "RTBs", type = METHOD_FORMAL_PARAMETER,
 208             genericLocation = { 0, 0 }, paramIndex = 1)
 209     public String methodParamAsArrayRepeatableAnnotation2() {
 210         return "void test(Object b, @RTA @RTA @RTB @RTB String [] a) { }";
 211     }
 212 
 213     @TADescription(annotation = "RTAs", type = METHOD_FORMAL_PARAMETER,
 214             genericLocation = { 0, 0 }, paramIndex = 1)
 215     @TADescription(annotation = "RTBs", type = METHOD_FORMAL_PARAMETER,
 216             genericLocation = { 0, 0 }, paramIndex = 1)
 217     public String methodParamAsArrayRepeatableAnnotation3() {
 218         return "void test(Object b, @RTA @RTA @RTB @RTB String [] a) { }";
 219     }
 220 
 221     @TADescription(annotation = "RTAs", type = METHOD_FORMAL_PARAMETER, paramIndex = 1)
 222     @TADescription(annotation = "RTBs", type = METHOD_FORMAL_PARAMETER,
 223             genericLocation = { 0, 0 }, paramIndex = 1)
 224     @TADescription(annotation = "RTCs", type = METHOD_FORMAL_PARAMETER,
 225             genericLocation = { 0, 0, 0, 0 }, paramIndex = 1)
 226     public String methodParamAsVarargRepeatableAnnotation() {
 227         return "void test(Object b, @RTC @RTC String @RTA @RTA [] @RTB @RTB ... a) { }";
 228     }
 229 
 230     @TADescription(annotation = "RTAs", type = METHOD_FORMAL_PARAMETER, paramIndex = 1)
 231     @TADescription(annotation = "RTBs", type = METHOD_FORMAL_PARAMETER,
 232             genericLocation = { 0, 0 }, paramIndex = 1)
 233     @TADescription(annotation = "RTCs", type = METHOD_FORMAL_PARAMETER,
 234             genericLocation = { 0, 0, 0, 0 }, paramIndex = 1)
 235     public String methodParamAsFQVarargRepeatableAnnotation() {
 236         return "void test(Object b, java.lang.@RTC @RTC String @RTA @RTA [] @RTB @RTB ... a) { }";
 237     }
 238 
 239     // Smoke tests
 240     @TADescription(annotation = "RTAs", type = METHOD_FORMAL_PARAMETER, paramIndex = 0)
 241     public String interfaceMethodParamAsObjectRepeatableAnnotation() {
 242         return "interface %TEST_CLASS_NAME% { void test(@RTA @RTA Object a); }";
 243     }
 244 
 245     @TADescription(annotation = "RTAs", type = METHOD_FORMAL_PARAMETER, paramIndex = 2)
 246     public String abstractMethodParamAsObjectRepeatableAnnotation() {
< prev index next >