From 09cbce45ca058a7d1f183cc0f010646f2caaa40b Mon Sep 17 00:00:00 2001 From: Alex Light Date: Thu, 16 Feb 2017 01:14:04 +0000 Subject: 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 --- .../src/TestMethodAnnotation2.java | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 test/948-change-annotations/src/TestMethodAnnotation2.java (limited to 'test/948-change-annotations/src/TestMethodAnnotation2.java') diff --git a/test/948-change-annotations/src/TestMethodAnnotation2.java b/test/948-change-annotations/src/TestMethodAnnotation2.java new file mode 100644 index 0000000000..2d5bb728a4 --- /dev/null +++ b/test/948-change-annotations/src/TestMethodAnnotation2.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 TestMethodAnnotation2 { + public String value(); +} -- cgit v1.2.3-59-g8ed1b