Adam Gent

Results 165 comments of Adam Gent

The bigger issue I still haven't figured out how to handle is propagating annotated generics to their super types. This because the annotated types do not follow up the hierarchy...

I see now... apparently: ```java @DefinedBy(Api.LANGUAGE_MODEL) public List directSupertypes(TypeMirror t) { validateTypeNotIn(t, EXEC_OR_PKG_OR_MOD); Type ty = (Type)t; return types.directSupertypes(ty).stream() .map(Type::stripMetadataIfNeeded) //

I figured it out how to restore type parameter annotations on containers. You need to use Types#asMemberOf on the parameter. Assume we have: ```java List someNullableList; ``` Lets say you...

@cpovirk Thank you for the comment! It was extremely helpful. I tried ErrorPrones Symbol getRawAttributes hack and I think it could work but the required setup would be rather painful...

@zafarkhaja sorry I can't remember exactly. It was so long ago but IIRC had written some custom release plugins and I think I need to basically decrement or increment to...

> P.S. the docs say that getFirst is fictitious which is no longer true as of java 21. Ha that is a good find! > is E get(int index); automatically...

Sort of off topic but I guess I missed that `@NonNull` was added (hence my hesitation to actually use the annotation for example). Was it always available? I swear its...

@cpovirk Now that I'm looking at the Javadoc of NonNull a note should probably be added either below or addition to: > Where it is not applicable > `@NonNull` is...

I remember the Java Rabbit guys looked at implementing the client with NIO select (aka netty reactor loop style) and if I recall to (@Antti point) the consensus was there...

I suppose for pre Java 8 version of JATL this would probably be ok and even desirable given that text will take a null with out throwing a NPE. I...