You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Arguments class is not Generic, and neither is of this probably cant be changed, but I'm thinking we could do cleaner, or at least more idiomatic than this.
Making Arguments itself generic would be better, but I'd bet we're past that since the API is marked stable. I think this would probably require a few method options which provide something like up to 5 generic parameters.
Thanks for raising the issue! I agree that casting to generic types is not great.
We initially decided to avoid making Arguments generic, because we'd need a variant for each number of arguments and when consuming we're using reflection anyway which only wants an Object[].
A common pattern I've seen is to use a Java record for this:
No, but that feels like a waste for 1-2 generic arguments. I suppose I could see it if you get beyond that, and certainly if you get beyond the recommended 4 max arguments.
Arguments class is not Generic, and neither is
of
this probably cant be changed, but I'm thinking we could do cleaner, or at least more idiomatic than this.this at least would not require casting
maybe
Making
Arguments
itself generic would be better, but I'd bet we're past that since the API is marked stable. I think this would probably require a few method options which provide something like up to 5 generic parameters.mostly spitballing at this point, maybe someone else could come up with a better API. jupiter 5.10.5
The text was updated successfully, but these errors were encountered: