Skip to content

Commit

Permalink
Delete constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
VasylyshynDmytro committed Jan 3, 2025
1 parent d40dff4 commit 7d657c2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ private PlaceUpdateDto getPlaceUpdateDto() {
placeUpdateDto.setId(1L);
placeUpdateDto.setName("test");
placeUpdateDto.setCategory(new CategoryDto("Food", "test", null));
placeUpdateDto.setLocation(new LocationAddressAndGeoForUpdateDto("address", 111.1, 111.1));
placeUpdateDto.setLocation(new LocationAddressAndGeoForUpdateDto("address", 111.1, 111.1, "адреса"));

return placeUpdateDto;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,4 @@ public class LocationAddressAndGeoForUpdateDto {
max = ServiceValidationConstants.PLACE_ADDRESS_MAX_LENGTH)
@Pattern(regexp = "^[^<>]+$")
private String addressUa;

public LocationAddressAndGeoForUpdateDto(String address, Double lat, Double lng) {
this.address = address;
this.lat = lat;
this.lng = lng;
}
}

0 comments on commit 7d657c2

Please sign in to comment.