summaryrefslogtreecommitdiff
path: root/test/948-change-annotations/src/TestMethodAnnotation1.java
diff options
context:
space:
mode:
author Alex Light <allight@google.com> 2017-02-16 01:14:04 +0000
committer Alex Light <allight@google.com> 2017-02-15 17:32:28 -0800
commit09cbce45ca058a7d1f183cc0f010646f2caaa40b (patch)
tree75e0b8fbf2913de03de057b18fab8160882df32a /test/948-change-annotations/src/TestMethodAnnotation1.java
parentb2793dd8d9c517b899c0c63dd219dee8f6391c94 (diff)
Revert "Revert "Add test for changing annotations.""
This reverts commit b2793dd8d9c517b899c0c63dd219dee8f6391c94. Reason for revert: Sorted annotations before printing. Test: mma -j40 test-art-host Test: ART_TEST_FULL=true \ ./test/testrunner/testrunner.py \ -t test-art-host-run-test-948-change-annotations Change-Id: Ie63e1a046baf3c69542d00dbad8ef5f6f29099de
Diffstat (limited to 'test/948-change-annotations/src/TestMethodAnnotation1.java')
-rw-r--r--test/948-change-annotations/src/TestMethodAnnotation1.java22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/948-change-annotations/src/TestMethodAnnotation1.java b/test/948-change-annotations/src/TestMethodAnnotation1.java
new file mode 100644
index 0000000000..d3920f3976
--- /dev/null
+++ b/test/948-change-annotations/src/TestMethodAnnotation1.java
@@ -0,0 +1,22 @@
+/*
+ * Copyright (C) 2017 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import java.lang.annotation.*;
+@Retention(RetentionPolicy.RUNTIME)
+@Target(ElementType.METHOD)
+public @ interface TestMethodAnnotation1 {
+ public String value();
+}