summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> 2023-10-11 11:21:49 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2023-10-11 11:21:49 +0000
commit62da93af7e085da237bb5020e7f1b0acf5a4d17e (patch)
treee295bb2df2d81e3f1940310a6ae38e0c08037a14
parentd58aa6416ce3f06703ef488e5b7e0b1c5073494b (diff)
parentfb19a6ccf0f61ad1651c0dcd1920e7d64c272720 (diff)
Merge "Remove Requires*ByDefault annotation." into main
-rw-r--r--SafetyCenter/Annotations/Android.bp1
-rw-r--r--SafetyCenter/Annotations/java/com/android/safetycenter/annotations/RequiresVanillaIceCreamByDefault.java40
2 files changed, 0 insertions, 41 deletions
diff --git a/SafetyCenter/Annotations/Android.bp b/SafetyCenter/Annotations/Android.bp
index 852d734b0..c04f40333 100644
--- a/SafetyCenter/Annotations/Android.bp
+++ b/SafetyCenter/Annotations/Android.bp
@@ -32,7 +32,6 @@ java_library {
":safetycenter-annotations-sources",
],
libs: [
- "androidx.annotation_annotation",
"jsr305",
],
apex_available: [
diff --git a/SafetyCenter/Annotations/java/com/android/safetycenter/annotations/RequiresVanillaIceCreamByDefault.java b/SafetyCenter/Annotations/java/com/android/safetycenter/annotations/RequiresVanillaIceCreamByDefault.java
deleted file mode 100644
index bb1c1eb97..000000000
--- a/SafetyCenter/Annotations/java/com/android/safetycenter/annotations/RequiresVanillaIceCreamByDefault.java
+++ /dev/null
@@ -1,40 +0,0 @@
-/*
- * Copyright (C) 2023 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 com.android.safetycenter.annotations;
-
-import static android.os.Build.VERSION_CODES.VANILLA_ICE_CREAM;
-
-import static java.lang.annotation.ElementType.PACKAGE;
-import static java.lang.annotation.ElementType.TYPE;
-import static java.lang.annotation.RetentionPolicy.CLASS;
-
-import androidx.annotation.RequiresApi;
-
-import java.lang.annotation.Retention;
-import java.lang.annotation.Target;
-
-import javax.annotation.meta.TypeQualifierDefault;
-
-/**
- * Specifies that all types are {@code RequiresApi(VANILLA_ICE_CREAM)} within the annotated package,
- * unless tagged another {@code @RequiresApi} annotation.
- */
-@Retention(CLASS)
-@Target(PACKAGE)
-@TypeQualifierDefault({TYPE})
-@RequiresApi(VANILLA_ICE_CREAM)
-public @interface RequiresVanillaIceCreamByDefault {}