diff options
author | Keun-young Park <keunyoung@google.com> | 2017-01-25 12:30:15 -0800 |
---|---|---|
committer | Keun-young Park <keunyoung@google.com> | 2017-01-26 13:50:03 -0800 |
commit | bae6e255631798985618af0d53e0a8e1fa42cb8f (patch) | |
tree | 294ffe975fbfbb2072ac1a2051bc2d1c15d96b30 /car-lib/src/android/car/annotation | |
parent | 124c53258f64c217006c3e4dc6519c520b5dacfa (diff) | |
download | Car-bae6e255631798985618af0d53e0a8e1fa42cb8f.tar.gz |
Add skeleton for future feature support
- Future feature is for feature which will not be enabled by default.
- These features are not ready yet and should not be used for
production.
- APIs marked with FutureFeature annotation is for APIs under development.
Those APIs should never used for production.
bug: 34710797
Test: build
Change-Id: If5d001f31b770fc6ba7bce084d98ce3c1fc1850f
Diffstat (limited to 'car-lib/src/android/car/annotation')
-rw-r--r-- | car-lib/src/android/car/annotation/FutureFeature.java | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/car-lib/src/android/car/annotation/FutureFeature.java b/car-lib/src/android/car/annotation/FutureFeature.java new file mode 100644 index 0000000000..70a0ad4542 --- /dev/null +++ b/car-lib/src/android/car/annotation/FutureFeature.java @@ -0,0 +1,34 @@ +/* + * 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. + */ +package android.car.annotation; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; + +/** + * Annotation to represent future feature which is not ready for the current platform release. + * Any API marked with this is for future development and should not be used for product. + * + * @hide + */ +@Target({ElementType.TYPE, ElementType.FIELD, ElementType.METHOD, ElementType.CONSTRUCTOR, + ElementType.LOCAL_VARIABLE}) +@Retention(RetentionPolicy.SOURCE) +public @interface FutureFeature { + Class type() default Object.class; +} |