Top Description Methods
com.sun.istack

public @Interface Interned

extends Annotation
Annotations
@Documented
@Retention:CLASS
@Target:FIELD, METHOD, PARAMETER, LOCAL_VARIABLE
Imports
java.lang.annotation.Documented, .Retention, .RetentionPolicy, .Target, .ElementType

Designates that a field, return value, argument, or a variable is supposed to be an interned string.

In many places in the istack, we assume Strings to be interned for the performance reason. Similarly, In many other places, we don't make such an assumption for the performance reason (because intern isn't free.)

Therefore, distinguishing which part is supposed to be interned and which part is supposed to be not is important. This annotation allows us to capture that in the code.

Author
Kohsuke Kawaguchi

Method Summary

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString