Closes #2701
Original pull request: #2696
This commit is contained in:
John Blum
2023-09-06 16:44:13 -07:00
parent b13690c611
commit e423851f87
2 changed files with 199 additions and 2 deletions

View File

@@ -40,8 +40,9 @@ public class ConvertingCursor<S, T> implements Cursor<T> {
*/
public ConvertingCursor(Cursor<S> cursor, Converter<S, T> converter) {
Assert.notNull(cursor, "Cursor delegate must not be 'null'");
Assert.notNull(converter, "Converter must not be 'null'");
Assert.notNull(cursor, "Cursor must not be null");
Assert.notNull(converter, "Converter must not be null");
this.delegate = cursor;
this.converter = converter;
}