< prev index next >
test/langtools/tools/javac/processing/model/element/repeatingAnnotations/SingularBasicTest.java
Print this page
*** 1,7 ****
/*
! * Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
--- 1,7 ----
/*
! * Copyright (c) 2013, 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*** 34,45 ****
* @compile -processor ElementRepAnnoTester -proc:only SingularBasicTest.java
*/
@ExpectedBase(
value = Foo.class,
! getAnnotation = "@Foo(value=0)",
! getAnnotationsByType = {"@Foo(value=0)"},
getAllAnnotationMirrors = {
"@Foo(0)",
"ExpectedBase",
"ExpectedContainer"
},
--- 34,45 ----
* @compile -processor ElementRepAnnoTester -proc:only SingularBasicTest.java
*/
@ExpectedBase(
value = Foo.class,
! getAnnotation = "@Foo(0)",
! getAnnotationsByType = {"@Foo(0)"},
getAllAnnotationMirrors = {
"@Foo(0)",
"ExpectedBase",
"ExpectedContainer"
},
*** 47,63 ****
"@Foo(0)",
"ExpectedBase",
"ExpectedContainer"
})
@ExpectedContainer
! @Foo(value = 0)
public class SingularBasicTest {
@ExpectedBase(
value = Foo.class,
! getAnnotation = "@Foo(value=0)",
! getAnnotationsByType = {"@Foo(value=0)"},
getAllAnnotationMirrors = {
"@Foo(0)",
"ExpectedBase",
"ExpectedContainer"
},
--- 47,63 ----
"@Foo(0)",
"ExpectedBase",
"ExpectedContainer"
})
@ExpectedContainer
! @Foo(0)
public class SingularBasicTest {
@ExpectedBase(
value = Foo.class,
! getAnnotation = "@Foo(0)",
! getAnnotationsByType = {"@Foo(0)"},
getAllAnnotationMirrors = {
"@Foo(0)",
"ExpectedBase",
"ExpectedContainer"
},
*** 65,81 ****
"@Foo(0)",
"ExpectedBase",
"ExpectedContainer"
})
@ExpectedContainer
! @Foo(value = 0)
int testField = 0;
@ExpectedBase(
value = Foo.class,
! getAnnotation = "@Foo(value=0)",
! getAnnotationsByType = {"@Foo(value=0)"},
getAllAnnotationMirrors = {
"@Foo(0)",
"ExpectedBase",
"ExpectedContainer"
},
--- 65,81 ----
"@Foo(0)",
"ExpectedBase",
"ExpectedContainer"
})
@ExpectedContainer
! @Foo(0)
int testField = 0;
@ExpectedBase(
value = Foo.class,
! getAnnotation = "@Foo(0)",
! getAnnotationsByType = {"@Foo(0)"},
getAllAnnotationMirrors = {
"@Foo(0)",
"ExpectedBase",
"ExpectedContainer"
},
*** 83,91 ****
"@Foo(0)",
"ExpectedBase",
"ExpectedContainer"
})
@ExpectedContainer
! @Foo(value = 0)
void testMethod() {
}
}
--- 83,91 ----
"@Foo(0)",
"ExpectedBase",
"ExpectedContainer"
})
@ExpectedContainer
! @Foo(0)
void testMethod() {
}
}
< prev index next >