mirror of
https://github.com/mapstruct/mapstruct.git
synced 2025-07-12 00:00:08 +08:00
#1082 Do not generate an empty line after method start for NestedPropertyMappingMethod
This commit is contained in:
parent
9899504db9
commit
8dbcc43a8e
@ -19,7 +19,6 @@
|
|||||||
|
|
||||||
-->
|
-->
|
||||||
<#lt>private <@includeModel object=returnType/> ${name}(<#list parameters as param><@includeModel object=param/><#if param_has_next>, </#if></#list>) {
|
<#lt>private <@includeModel object=returnType/> ${name}(<#list parameters as param><@includeModel object=param/><#if param_has_next>, </#if></#list>) {
|
||||||
|
|
||||||
if ( ${sourceParameter.name} == null ) {
|
if ( ${sourceParameter.name} == null ) {
|
||||||
return ${returnType.null};
|
return ${returnType.null};
|
||||||
}
|
}
|
||||||
|
@ -105,7 +105,6 @@ public class ArtistToChartEntryImpl implements ArtistToChartEntry {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private String songArtistLabelStudioCity(Song song) {
|
private String songArtistLabelStudioCity(Song song) {
|
||||||
|
|
||||||
if ( song == null ) {
|
if ( song == null ) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
@ -129,7 +128,6 @@ public class ArtistToChartEntryImpl implements ArtistToChartEntry {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private String songArtistLabelStudioName(Song song) {
|
private String songArtistLabelStudioName(Song song) {
|
||||||
|
|
||||||
if ( song == null ) {
|
if ( song == null ) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
@ -153,7 +151,6 @@ public class ArtistToChartEntryImpl implements ArtistToChartEntry {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private String songArtistName(Song song) {
|
private String songArtistName(Song song) {
|
||||||
|
|
||||||
if ( song == null ) {
|
if ( song == null ) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
@ -229,7 +229,6 @@ public class ChartEntryToArtistImpl extends ChartEntryToArtist {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private String chartSongTitle(Chart chart) {
|
private String chartSongTitle(Chart chart) {
|
||||||
|
|
||||||
if ( chart == null ) {
|
if ( chart == null ) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
@ -245,7 +244,6 @@ public class ChartEntryToArtistImpl extends ChartEntryToArtist {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private String chartSongArtistLabelStudioCity(Chart chart) {
|
private String chartSongArtistLabelStudioCity(Chart chart) {
|
||||||
|
|
||||||
if ( chart == null ) {
|
if ( chart == null ) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
@ -273,7 +271,6 @@ public class ChartEntryToArtistImpl extends ChartEntryToArtist {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private String chartSongArtistLabelStudioName(Chart chart) {
|
private String chartSongArtistLabelStudioName(Chart chart) {
|
||||||
|
|
||||||
if ( chart == null ) {
|
if ( chart == null ) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
@ -301,7 +298,6 @@ public class ChartEntryToArtistImpl extends ChartEntryToArtist {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private String chartSongArtistName(Chart chart) {
|
private String chartSongArtistName(Chart chart) {
|
||||||
|
|
||||||
if ( chart == null ) {
|
if ( chart == null ) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
@ -321,7 +317,6 @@ public class ChartEntryToArtistImpl extends ChartEntryToArtist {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private List<Integer> chartSongPositions(Chart chart) {
|
private List<Integer> chartSongPositions(Chart chart) {
|
||||||
|
|
||||||
if ( chart == null ) {
|
if ( chart == null ) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
@ -48,7 +48,6 @@ public class FishTankMapperImpl implements FishTankMapper {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private String fishTankFishType(FishTank fishTank) {
|
private String fishTankFishType(FishTank fishTank) {
|
||||||
|
|
||||||
if ( fishTank == null ) {
|
if ( fishTank == null ) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user