mapstruct-idea
mapstruct-idea copied to clipboard
Completion of nested property of generic source property
Example Source class (Lombok used for brevity):
import org.geolatte.geom.G2D;
import org.geolatte.geom.Point;
@Getter
@Setter
public class Location {
private Point<G2D> coordinates;
// ...
}
eg. when attempting to map the latitude of coordinates:
@Mapping(source = "coordinates.position.lat", target = "latitude")
Point#getPosition() returns the type argument, in this case G2D, but the plugin infers it as P (the type parameter), and hence fails to autocomplete the G2D#getLat() property.