Permalink
Browse files

Allow overriding valid calendar properties

  • Loading branch information...
benfortuna committed Sep 13, 2015
1 parent 65d61f6 commit 0b196daa3bd34257189c184b7f056d7bbc987125
Showing with 4 additions and 3 deletions.
  1. +4 −3 src/main/java/net/fortuna/ical4j/validate/CalendarValidatorImpl.java
@@ -9,18 +9,19 @@
import org.apache.commons.collections4.CollectionUtils;
import org.apache.commons.collections4.Predicate;
-import java.util.Arrays;
+import java.util.ArrayList;
+import java.util.Collections;
import java.util.List;
/**
* Created by fortuna on 13/09/15.
*/
public class CalendarValidatorImpl implements Validator<Calendar> {
- protected final List<Class<? extends Property>> calendarProperties;
+ protected final List<Class<? extends Property>> calendarProperties = new ArrayList<Class<? extends Property>>();
public CalendarValidatorImpl() {
- calendarProperties = Arrays.asList(CalScale.class, Method.class, ProdId.class, Version.class);
+ Collections.addAll(calendarProperties, CalScale.class, Method.class, ProdId.class, Version.class);
}
@Override

0 comments on commit 0b196da

Please sign in to comment.