Skip to content

Commit

Permalink
docs: add missing javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
Martijn Bonajo committed Sep 6, 2024
1 parent 29bf2a7 commit fe369ce
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/java/appointmentplanner/api/LocalDay.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@
*/
public record LocalDay(ZoneId zone, LocalDate date) {

/**
* Default constructor. Make sure zone and date are not null.
* @param zone the zoneId
* @param date the date
*/
public LocalDay {
Objects.requireNonNull(zone, "zone cannot be null");
Objects.requireNonNull(date, "date cannot be null");
Expand Down

0 comments on commit fe369ce

Please sign in to comment.