On Mon, 6 Feb 2023 12:41:44 GMT, Adam Sotona <[email protected]> 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