1bce3d7cfe03fcb70bd374ad2e8b16ba64a45e993Elliott Hughes/*
2bce3d7cfe03fcb70bd374ad2e8b16ba64a45e993Elliott Hughes * Copyright (C) 2013 The Android Open Source Project
3bce3d7cfe03fcb70bd374ad2e8b16ba64a45e993Elliott Hughes *
4bce3d7cfe03fcb70bd374ad2e8b16ba64a45e993Elliott Hughes * Licensed under the Apache License, Version 2.0 (the "License");
5bce3d7cfe03fcb70bd374ad2e8b16ba64a45e993Elliott Hughes * you may not use this file except in compliance with the License.
6bce3d7cfe03fcb70bd374ad2e8b16ba64a45e993Elliott Hughes * You may obtain a copy of the License at
7bce3d7cfe03fcb70bd374ad2e8b16ba64a45e993Elliott Hughes *
8bce3d7cfe03fcb70bd374ad2e8b16ba64a45e993Elliott Hughes *      http://www.apache.org/licenses/LICENSE-2.0
9bce3d7cfe03fcb70bd374ad2e8b16ba64a45e993Elliott Hughes *
10bce3d7cfe03fcb70bd374ad2e8b16ba64a45e993Elliott Hughes * Unless required by applicable law or agreed to in writing, software
11bce3d7cfe03fcb70bd374ad2e8b16ba64a45e993Elliott Hughes * distributed under the License is distributed on an "AS IS" BASIS,
12bce3d7cfe03fcb70bd374ad2e8b16ba64a45e993Elliott Hughes * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13bce3d7cfe03fcb70bd374ad2e8b16ba64a45e993Elliott Hughes * See the License for the specific language governing permissions and
14bce3d7cfe03fcb70bd374ad2e8b16ba64a45e993Elliott Hughes * limitations under the License.
15bce3d7cfe03fcb70bd374ad2e8b16ba64a45e993Elliott Hughes */
16bce3d7cfe03fcb70bd374ad2e8b16ba64a45e993Elliott Hughes
17bce3d7cfe03fcb70bd374ad2e8b16ba64a45e993Elliott Hughespackage java.lang;
18bce3d7cfe03fcb70bd374ad2e8b16ba64a45e993Elliott Hughes
19bce3d7cfe03fcb70bd374ad2e8b16ba64a45e993Elliott Hughesimport java.lang.annotation.Documented;
20bce3d7cfe03fcb70bd374ad2e8b16ba64a45e993Elliott Hughesimport java.lang.annotation.ElementType;
21bce3d7cfe03fcb70bd374ad2e8b16ba64a45e993Elliott Hughesimport java.lang.annotation.Retention;
22bce3d7cfe03fcb70bd374ad2e8b16ba64a45e993Elliott Hughesimport java.lang.annotation.RetentionPolicy;
23bce3d7cfe03fcb70bd374ad2e8b16ba64a45e993Elliott Hughesimport java.lang.annotation.Target;
24bce3d7cfe03fcb70bd374ad2e8b16ba64a45e993Elliott Hughes
25bce3d7cfe03fcb70bd374ad2e8b16ba64a45e993Elliott Hughes/**
26bce3d7cfe03fcb70bd374ad2e8b16ba64a45e993Elliott Hughes * Claims to the compiler that the annotation target does nothing potentially unsafe
27bce3d7cfe03fcb70bd374ad2e8b16ba64a45e993Elliott Hughes * to its varargs argument.
28bce3d7cfe03fcb70bd374ad2e8b16ba64a45e993Elliott Hughes *
29bce3d7cfe03fcb70bd374ad2e8b16ba64a45e993Elliott Hughes * @since 1.7
30bce3d7cfe03fcb70bd374ad2e8b16ba64a45e993Elliott Hughes */
31bce3d7cfe03fcb70bd374ad2e8b16ba64a45e993Elliott Hughes@Documented
32bce3d7cfe03fcb70bd374ad2e8b16ba64a45e993Elliott Hughes@Retention(value=RetentionPolicy.RUNTIME)
33bce3d7cfe03fcb70bd374ad2e8b16ba64a45e993Elliott Hughes@Target(value={ElementType.CONSTRUCTOR, ElementType.METHOD})
34bce3d7cfe03fcb70bd374ad2e8b16ba64a45e993Elliott Hughespublic @interface SafeVarargs {
35bce3d7cfe03fcb70bd374ad2e8b16ba64a45e993Elliott Hughes}
36