use of org.mapstruct.ap.test.constructor.nestedsource.source.Artist in project mapstruct by mapstruct.
the class ChartEntryToArtistImpl method chartSongArtistLabelStudioCity.
private String chartSongArtistLabelStudioCity(Chart chart) {
if (chart == null) {
return null;
}
Song song = chart.getSong();
if (song == null) {
return null;
}
Artist artist = song.getArtist();
if (artist == null) {
return null;
}
Label label = artist.getLabel();
if (label == null) {
return null;
}
Studio studio = label.getStudio();
if (studio == null) {
return null;
}
String city = studio.getCity();
if (city == null) {
return null;
}
return city;
}
Aggregations