@@ -430,7 +430,7 @@ default <V> V require(final Class<V> type) throws SerializationException {
430430 * requested type
431431 * @since 4.1.0
432432 */
433- default @ Nullable Object require (final Type type ) throws SerializationException {
433+ default Object require (final Type type ) throws SerializationException {
434434 final @ Nullable Object ret = this .get (type );
435435 if (ret == null ) {
436436 throw new NoSuchElementException ("Node value was null when a non-null node was require()d" );
@@ -656,8 +656,8 @@ default Object get(Type type, Supplier<?> defSupplier) throws SerializationExcep
656656 */
657657 default <V > List <V > getList (TypeToken <V > elementType , List <V > def ) throws SerializationException { // @cs-: NoGetSetPrefix (not a bean method)
658658 final TypeToken <List <V >> type = makeListType (elementType );
659- final @ Nullable List <V > ret = get (type , def );
660- return ret == null || ret .isEmpty () ? storeDefault (this , type .getType (), def ) : ret ;
659+ final List <V > ret = get (type , def );
660+ return ret .isEmpty () ? storeDefault (this , type .getType (), def ) : ret ;
661661 }
662662
663663 /**
@@ -725,8 +725,8 @@ default <V> List<V> getList(TypeToken<V> elementType, Supplier<List<V>> defSuppl
725725 @ SuppressWarnings ("unchecked" )
726726 default <V > List <V > getList (Class <V > elementType , List <V > def ) throws SerializationException { // @cs-: NoGetSetPrefix (not a bean method)
727727 final Type type = TypeFactory .parameterizedClass (List .class , elementType );
728- final @ Nullable List <V > ret = (List <V >) get (type , def );
729- return ret == null || ret .isEmpty () ? storeDefault (this , type , def ) : ret ;
728+ final List <V > ret = (List <V >) get (type , def );
729+ return ret .isEmpty () ? storeDefault (this , type , def ) : ret ;
730730 }
731731
732732 /**
0 commit comments