DoNotInline
@Target([AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY_GETTER, AnnotationTarget.PROPERTY_SETTER]) class DoNotInline
androidx.annotation.DoNotInline |
Denotes that the annotated method should not be inlined when the code is optimized at build time. This is typically used to avoid inlining purposely out-of-line methods that are intended to be in separate classes.
Example:
<code> @DoNotInline public void foo() { ... } </code>
Summary
Public constructors | |
---|---|
<init>() Denotes that the annotated method should not be inlined when the code is optimized at build time. |
Public constructors
<init>
DoNotInline()
Denotes that the annotated method should not be inlined when the code is optimized at build time. This is typically used to avoid inlining purposely out-of-line methods that are intended to be in separate classes.
Example:
<code> @DoNotInline public void foo() { ... } </code>