From 41794494608cff95effaf1e539340c55bf78c47b Mon Sep 17 00:00:00 2001 From: Markus Kreth Date: Thu, 10 Jan 2019 15:21:10 +0100 Subject: [PATCH] Version update, simplification --- pom.xml | 2 +- .../ui/components/YearlyCalendarCreator.java | 11 ++++------- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/pom.xml b/pom.xml index e0c5ca8..84f385c 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ de.kreth.vaadin.clubhelper vaadin-clubhelper - 0.0.2-beta + 0.0.3-SNAPSHOT war vaadin-clubhelper diff --git a/src/main/java/de/kreth/vaadin/clubhelper/vaadinclubhelper/ui/components/YearlyCalendarCreator.java b/src/main/java/de/kreth/vaadin/clubhelper/vaadinclubhelper/ui/components/YearlyCalendarCreator.java index d33609f..88f79ad 100644 --- a/src/main/java/de/kreth/vaadin/clubhelper/vaadinclubhelper/ui/components/YearlyCalendarCreator.java +++ b/src/main/java/de/kreth/vaadin/clubhelper/vaadinclubhelper/ui/components/YearlyCalendarCreator.java @@ -8,6 +8,8 @@ import java.util.Collections; import java.util.Iterator; import java.util.Map; +import org.springframework.lang.NonNull; + import de.kreth.vaadin.clubhelper.vaadinclubhelper.ui.components.calendar.Year; import net.sf.jasperreports.engine.JRDataSource; import net.sf.jasperreports.engine.JRException; @@ -21,13 +23,8 @@ public class YearlyCalendarCreator extends CalendarCreator { this(year, values, Collections.emptyList()); } - public YearlyCalendarCreator(int year, Map values, Collection holidays) { - if (values == null) { - throw new NullPointerException("Calendar values must not be null!"); - } - if (holidays == null) { - throw new NullPointerException("holidays values must not be null!"); - } + public YearlyCalendarCreator(int year, @NonNull Map values, + @NonNull Collection holidays) { this.year = new Year(year, values, holidays); }