This commit is contained in:
Phillip Webb
2019-10-30 10:44:28 -07:00
parent 7f509bf84e
commit b3e9a06476
2 changed files with 4 additions and 6 deletions

View File

@@ -36,9 +36,9 @@ import org.springframework.util.Assert;
*/
abstract class NamedContributorsMapAdapter<V, C> implements NamedContributors<C> {
private Map<String, V> map;
private final Map<String, V> map;
private Function<V, ? extends C> valueAdapter;
private final Function<V, ? extends C> valueAdapter;
NamedContributorsMapAdapter(Map<String, V> map, Function<V, ? extends C> valueAdapter) {
Assert.notNull(map, "Map must not be null");