RFR: 8294982: Implementation of Classfile API [v12]
Maurizio Cimadamore
mcimadamore at openjdk.org
Tue Feb 7 11:43:52 UTC 2023
On Mon, 6 Feb 2023 12:41:44 GMT, Adam Sotona <asotona at openjdk.org> wrote:
>> src/java.base/share/classes/jdk/internal/classfile/TypeAnnotation.java line 75:
>>
>>> 73: * The kind of target on which the annotation appears.
>>> 74: */
>>> 75: public enum TargetType {
>>
>> My IDE says this enum is not being used. I tend to believe it, since the TargetInfo sealed interface also seems to model the same thing?
>
> There is only one TargetInfo for all TargetTypes, so instead of 22 sub-interfaces of TargetInfo, the instance of TargetType enum is hold in TargetInfo.
Ok, I see that now - for some reason the IDE could not find the usage... thanks
-------------
PR: https://git.openjdk.org/jdk/pull/10982
More information about the core-libs-dev
mailing list