summaryrefslogtreecommitdiff
path: root/test/948-change-annotations/src/TestClassAnnotation2.java
diff options
context:
space:
mode:
author Alex Light <allight@google.com> 2017-02-14 13:27:43 -0800
committer Alex Light <allight@google.com> 2017-02-15 12:57:34 -0800
commit701fc35b59d7d3eb33fb5d3cc90b14d29726ca66 (patch)
tree512a87d4c53c20e6369de120bed0f2a25c4d71c9 /test/948-change-annotations/src/TestClassAnnotation2.java
parent5abcfe6254acce99bf25a151b19ffe5c9b50494f (diff)
Add test for changing annotations.
Also remove the LOG(WARNING) about not checking for annotations changes since it doesn't seem the RI checks for this either. Test: mma -j40 test-art-host Change-Id: I4b3a2bc9ef6eab6e76dd4ebcea46d968b49ca9dc
Diffstat (limited to 'test/948-change-annotations/src/TestClassAnnotation2.java')
-rw-r--r--test/948-change-annotations/src/TestClassAnnotation2.java22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/948-change-annotations/src/TestClassAnnotation2.java b/test/948-change-annotations/src/TestClassAnnotation2.java
new file mode 100644
index 0000000000..67e6260459
--- /dev/null
+++ b/test/948-change-annotations/src/TestClassAnnotation2.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.TYPE)
+public @ interface TestClassAnnotation2 {
+ public String value();
+}