-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Open
Labels
featurefor:team-discussionup-for-grabsIssues targeted for community contributionIssues targeted for community contribution
Description
I am trying to map generics like this:
public static <T, X> Nullable<X> jsonNullableToNullable(JsonNullable<T> jsonNullable) {
if (jsonNullable.isPresent()) {
return Nullable.of(jsonNullable.get());
}
return Nullable.undefined();
}
But how do I tell mapstruct in line return Nullable.of(jsonNullable.get()) to call the appropriate mapper to map from T to X?
I have also opened a stackoverflow question with all the details: https://stackoverflow.com/questions/66452786/mapstruct-wrapper-type-and-generics
JudeNiroshan, fuesec, chriswill0w, Efrit, TimofeevD and 2 more
Metadata
Metadata
Assignees
Labels
featurefor:team-discussionup-for-grabsIssues targeted for community contributionIssues targeted for community contribution