Version update, simplification

master
Markus Kreth 7 years ago
parent bdfdcb3903
commit 4179449460
  1. 2
      pom.xml
  2. 11
      src/main/java/de/kreth/vaadin/clubhelper/vaadinclubhelper/ui/components/YearlyCalendarCreator.java

@ -4,7 +4,7 @@
<groupId>de.kreth.vaadin.clubhelper</groupId> <groupId>de.kreth.vaadin.clubhelper</groupId>
<artifactId>vaadin-clubhelper</artifactId> <artifactId>vaadin-clubhelper</artifactId>
<version>0.0.2-beta</version> <version>0.0.3-SNAPSHOT</version>
<packaging>war</packaging> <packaging>war</packaging>
<name>vaadin-clubhelper</name> <name>vaadin-clubhelper</name>

@ -8,6 +8,8 @@ import java.util.Collections;
import java.util.Iterator; import java.util.Iterator;
import java.util.Map; import java.util.Map;
import org.springframework.lang.NonNull;
import de.kreth.vaadin.clubhelper.vaadinclubhelper.ui.components.calendar.Year; import de.kreth.vaadin.clubhelper.vaadinclubhelper.ui.components.calendar.Year;
import net.sf.jasperreports.engine.JRDataSource; import net.sf.jasperreports.engine.JRDataSource;
import net.sf.jasperreports.engine.JRException; import net.sf.jasperreports.engine.JRException;
@ -21,13 +23,8 @@ public class YearlyCalendarCreator extends CalendarCreator {
this(year, values, Collections.emptyList()); this(year, values, Collections.emptyList());
} }
public YearlyCalendarCreator(int year, Map<LocalDate, CharSequence> values, Collection<LocalDate> holidays) { public YearlyCalendarCreator(int year, @NonNull Map<LocalDate, CharSequence> values,
if (values == null) { @NonNull Collection<LocalDate> holidays) {
throw new NullPointerException("Calendar values must not be null!");
}
if (holidays == null) {
throw new NullPointerException("holidays values must not be null!");
}
this.year = new Year(year, values, holidays); this.year = new Year(year, values, holidays);
} }

Loading…
Cancel
Save