< prev index next >
test/langtools/tools/javac/processing/model/element/repeatingAnnotations/RepeatableOverrideBTest.java
Print this page
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
+ * 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.
@@ -32,19 +32,19 @@
* jdk.compiler
* @build JavacTestingAbstractProcessor ElementRepAnnoTester
* @compile -processor ElementRepAnnoTester -proc:only RepeatableOverrideBTest.java
*/
-@BarInherited(value = 0)
+@BarInherited(0)
class C {}
@ExpectedBase(
value = BarInherited.class,
- getAnnotation = "@BarInherited(value=0)",
+ getAnnotation = "@BarInherited(0)",
getAnnotationsByType = {
- "@BarInherited(value=1)",
- "@BarInherited(value=2)"
+ "@BarInherited(1)",
+ "@BarInherited(2)"
},
getAllAnnotationMirrors = {
"@BarInherited(0)",
"@BarInheritedContainer({@BarInherited(1), @BarInherited(2)})",
"ExpectedBase",
@@ -56,11 +56,11 @@
"ExpectedContainer"
})
@ExpectedContainer(
value = BarInheritedContainer.class,
getAnnotation = "@BarInheritedContainer("
- + "value={@BarInherited(value=1), @BarInherited(value=2)})",
+ + "{@BarInherited(1), @BarInherited(2)})",
getAnnotationsByType = {"@BarInheritedContainer("
- + "value={@BarInherited(value=1), @BarInherited(value=2)})"})
-@BarInherited(value = 1)
-@BarInherited(value = 2)
+ + "{@BarInherited(1), @BarInherited(2)})"})
+@BarInherited(1)
+@BarInherited(2)
class RepeatableOverrideBTest extends C {}
< prev index next >