Android Studio Sign in

Discouraged


  • Cmn
    @Retention(value = AnnotationRetention.SOURCE)
    @Target(allowedTargets = [AnnotationTarget.CONSTRUCTOR, AnnotationTarget.FIELD, AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY_GETTER, AnnotationTarget.PROPERTY_SETTER, AnnotationTarget.VALUE_PARAMETER, AnnotationTarget.ANNOTATION_CLASS, AnnotationTarget.CLASS])
    annotation Discouraged

Denotes that the annotated element, while not disallowed or deprecated, is one that programmers are generally discouraged from using.

Example:

@Discouraged(message = "It is much more efficient to retrieve "
+ "resources by identifier than by name.")
public void getValue(String name) {
...
}

Summary

Public constructors

Discouraged(message: String)
Cmn

Public properties

String

Defines the message to display when an element marked with this annotation is used.

Cmn

Public constructors

Discouraged

Discouraged(message: String)

Public properties

message

val messageString

Defines the message to display when an element marked with this annotation is used. An alternative should be provided in the message.

Morty Proxy This is a proxified and sanitized view of the page, visit original site.