diff --git a/legacy/src/main/java/ca/bc/gov/app/dto/ForestClientDto.java b/legacy/src/main/java/ca/bc/gov/app/dto/ForestClientDto.java index 47db8909ac..c6a8e8f2d6 100644 --- a/legacy/src/main/java/ca/bc/gov/app/dto/ForestClientDto.java +++ b/legacy/src/main/java/ca/bc/gov/app/dto/ForestClientDto.java @@ -7,32 +7,31 @@ import org.springframework.data.annotation.Transient; public record ForestClientDto( - String clientNumber, - String clientName, - String legalFirstName, - String legalMiddleName, - String clientStatusCode, - String clientTypeCode, - LocalDate birthdate, - String clientIdTypeCode, - String clientIdentification, - String registryCompanyTypeCode, - String corpRegnNmbr, - String clientComment, - String createdBy, - String updatedBy, - Long orgUnit -) { + String clientNumber, + String clientName, + String legalFirstName, + String legalMiddleName, + String clientStatusCode, + String clientTypeCode, + LocalDate birthdate, + String clientIdTypeCode, + String clientIdentification, + String registryCompanyTypeCode, + String corpRegnNmbr, + String clientComment, + String createdBy, + String updatedBy, + Long orgUnit) { - @Transient - public String name(){ - if(Objects.equals(this.clientTypeCode, "I")){ - return Stream.of(this.legalFirstName, this.legalMiddleName, this.clientName) - .filter(Objects::nonNull) - .collect(Collectors.joining(" ")); - }else{ - return this.clientName; - } - } + @Transient + public String name() { + if (Objects.equals(this.clientTypeCode, "I")) { + return Stream.of(this.legalFirstName, this.legalMiddleName, this.clientName) + .filter(Objects::nonNull) + .collect(Collectors.joining(" ")); + } else { + return this.clientName; + } + } }