1 // Copyright 2018 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 package org.chromium.base.annotations;
6 
7 import java.lang.annotation.ElementType;
8 import java.lang.annotation.Retention;
9 import java.lang.annotation.RetentionPolicy;
10 import java.lang.annotation.Target;
11 
12 /**
13  * The annotated method or class should never be inlined.
14  *
15  * The annotated method (or methods on the annotated class) are guaranteed not to be inlined by
16  * Proguard. Other optimizations may still apply.
17  */
18 @Target({ElementType.CONSTRUCTOR, ElementType.METHOD, ElementType.TYPE})
19 @Retention(RetentionPolicy.CLASS)
20 public @interface DoNotInline {}
21