blob: 00923edeaeba15c2f8138cad40c18970c20e66ad [file] [log] [blame]
Søren Gjesse591455a2025-02-06 16:46:39 +01001/*
2 * Copyright 2025 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17// ***********************************************************************************
18// MAINTAINED AND TESTED IN THE R8 REPO. PLEASE MAKE CHANGES THERE AND REPLICATE.
19// ***********************************************************************************
20
Søren Gjesse43a16782025-02-24 09:19:24 +010021package androidx.annotation.keep
Søren Gjesse591455a2025-02-06 16:46:39 +010022
Søren Gjesse43a16782025-02-24 09:19:24 +010023import kotlin.annotation.Retention
24import kotlin.annotation.Target
Søren Gjesse591455a2025-02-06 16:46:39 +010025
26/**
27 * Mark that an item must be fully removed from the residual program.
28 *
29 * <p>Being removed from the program means that the item declaration is not present at all in the
30 * residual program. For example, inlined functions are not considered removed. If content of the
31 * item is allowed to be in the residual, use {@link CheckOptimizedOut}.
32 *
33 * <p>A class is removed if all of its members are removed and no references to the class remain.
34 */
Søren Gjesse43a16782025-02-24 09:19:24 +010035@Retention(AnnotationRetention.BINARY)
36@Target(
Søren Gjesseb2f03c72025-03-19 15:10:23 +010037 AnnotationTarget.TYPE,
38 AnnotationTarget.FIELD,
39 AnnotationTarget.FUNCTION,
40 AnnotationTarget.CONSTRUCTOR,
Søren Gjesse43a16782025-02-24 09:19:24 +010041)
Søren Gjessef1d79d52025-02-24 12:17:45 +010042public annotation class CheckRemoved(val description: String = "")