Skip to content

Extension to infer type (generics params) of class #4420

Discussion options

You must be logged in to vote

Not directly, but it depends on what the first type variable of Mapper does in Mapper. If you simply have @return T somewhere in Mapper that maps to @return User in UserMapper, then you can write a dynamic return type extension for that.

Again, the best course of action is to generate the @extends. It's achievable with a simple search+replace.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@MartinMystikJonas
Comment options

@genesiscz
Comment options

Answer selected by ondrejmirtes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Support
Labels
None yet
3 participants