@Retention(value = AnnotationRetention.BINARY)
@Target(allowedTargets = [AnnotationTarget.CONSTRUCTOR, AnnotationTarget.FUNCTION])
@OptionalExpectation
public annotation NeverInline


Indicates that an API should never be inlined by ART on Android.

NeverInline can be used to annotate methods that should not be inlined into other methods. Methods that are not called frequently, are never speed-critical, or are only used for debugging do not necessarily need to run quickly. Applying this annotation to prevent these methods from being inlined will return some size improvements in .odex files.

Prefer using the AndroidNeverInline typealias instead of this annotation directly to emphasize it only affects Android targets.

Summary

Public constructors

Public constructors

NeverInline

public NeverInline()