@ -43,7 +43,7 @@ abstract class NamedContributorsMapAdapter<V, C> implements NamedContributors<C>
@@ -43,7 +43,7 @@ abstract class NamedContributorsMapAdapter<V, C> implements NamedContributors<C>
NamedContributorsMapAdapter ( Map < String , V > map , Function < V , ? extends C > valueAdapter ) {
Assert . notNull ( map , "Map must not be null" ) ;
Assert . notNull ( valueAdapter , "ValueAdapter must not be null" ) ;
map . keySet ( ) . stream ( ) . forEach ( ( key ) - > Assert . notNull ( key , "Map must not contain null keys" ) ) ;
map . keySet ( ) . forEach ( ( key ) - > Assert . notNull ( key , "Map must not contain null keys" ) ) ;
map . values ( ) . stream ( ) . map ( valueAdapter )
. forEach ( ( value ) - > Assert . notNull ( value , "Map must not contain null values" ) ) ;
this . map = Collections . unmodifiableMap ( new LinkedHashMap < > ( map ) ) ;