@Documented @Retention(value=CLASS) @Target(value={FIELD,METHOD,PARAMETER,LOCAL_VARIABLE}) public @interface Interned
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.
Copyright © 2021 JBoss by Red Hat. All rights reserved.