#1930 - Polish Javadoc and nullability.

This commit is contained in:
Oliver Drotbohm
2023-03-17 11:57:48 +01:00
parent c9dc4d1580
commit 6b7a359d78
5 changed files with 21 additions and 15 deletions

View File

@@ -60,6 +60,7 @@ public class CollectionModel<T> extends RepresentationModel<CollectionModel<T>>
protected CollectionModel(Iterable<T> content, Iterable<Link> links, @Nullable ResolvableType fallbackType) {
Assert.notNull(content, "Content must not be null!");
Assert.notNull(links, "Links must not be null!");
this.content = new ArrayList<>();