99public class EventMapper {
1010
1111 public static Event toEvent (NewEventDto newEventDto ) {
12- return new Event () .builder ()
12+ return Event .builder ()
1313 .annotation (newEventDto .getAnnotation ())
1414 .description (newEventDto .getDescription ())
1515 .eventDate (newEventDto .getEventDate ())
@@ -22,7 +22,7 @@ public static Event toEvent(NewEventDto newEventDto) {
2222 }
2323
2424 public static EventFullDto toEventFullDto (Event event ) {
25- return new EventFullDto () .builder ()
25+ return EventFullDto .builder ()
2626 .id (event .getId ())
2727 .annotation (event .getAnnotation ())
2828 .category (CategoryMapper .toCategoryDto (event .getCategory ()))
@@ -43,7 +43,7 @@ public static EventFullDto toEventFullDto(Event event) {
4343 }
4444
4545 public static EventShortDto toEventShortDto (Event event ) {
46- return new EventShortDto () .builder ()
46+ return EventShortDto .builder ()
4747 .id (event .getId ())
4848 .annotation (event .getAnnotation ())
4949 .category (CategoryMapper .toCategoryDto (event .getCategory ()))
@@ -57,7 +57,7 @@ public static EventShortDto toEventShortDto(Event event) {
5757 }
5858
5959 public static UpdateEventRequest toUpdateEventRequest (UpdateEventUserRequest event ) {
60- return new UpdateEventRequest () .builder ()
60+ return UpdateEventRequest .builder ()
6161 .annotation (event .getAnnotation ())
6262 .category (event .getCategory ())
6363 .description (event .getDescription ())
@@ -71,7 +71,7 @@ public static UpdateEventRequest toUpdateEventRequest(UpdateEventUserRequest eve
7171 }
7272
7373 public static UpdateEventRequest toUpdateEventRequest (UpdateEventAdminRequest event ) {
74- return new UpdateEventRequest () .builder ()
74+ return UpdateEventRequest .builder ()
7575 .annotation (event .getAnnotation ())
7676 .category (event .getCategory ())
7777 .description (event .getDescription ())
0 commit comments