From bdfee3417e3737b6a506f78fc301ba54e4927802 Mon Sep 17 00:00:00 2001 From: Sebastien Deleuze Date: Tue, 15 May 2018 10:44:27 +0200 Subject: [PATCH] Polishing --- .../http/converter/json/Jackson2ObjectMapperBuilder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-web/src/main/java/org/springframework/http/converter/json/Jackson2ObjectMapperBuilder.java b/spring-web/src/main/java/org/springframework/http/converter/json/Jackson2ObjectMapperBuilder.java index cc0ff5fafc..a083fb8562 100644 --- a/spring-web/src/main/java/org/springframework/http/converter/json/Jackson2ObjectMapperBuilder.java +++ b/spring-web/src/main/java/org/springframework/http/converter/json/Jackson2ObjectMapperBuilder.java @@ -677,7 +677,7 @@ public class Jackson2ObjectMapperBuilder { objectMapper.setFilterProvider(this.filters); } - this.mixIns.forEach((target, mixinSource) -> objectMapper.addMixIn(target, mixinSource)); + this.mixIns.forEach(objectMapper::addMixIn); if (!this.serializers.isEmpty() || !this.deserializers.isEmpty()) { SimpleModule module = new SimpleModule();