From 4d36f04849541df6c6b8738622544d1b26dfe8d4 Mon Sep 17 00:00:00 2001 From: troshko111 <931973+troshko111@users.noreply.github.com> Date: Mon, 27 Sep 2021 15:48:41 -0700 Subject: [PATCH] Remove redundant metadata synchronization (#1424) (#1426) --- .../com/netflix/discovery/converters/EurekaJacksonCodec.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eureka-client/src/main/java/com/netflix/discovery/converters/EurekaJacksonCodec.java b/eureka-client/src/main/java/com/netflix/discovery/converters/EurekaJacksonCodec.java index f14da0e38..c3c21039f 100644 --- a/eureka-client/src/main/java/com/netflix/discovery/converters/EurekaJacksonCodec.java +++ b/eureka-client/src/main/java/com/netflix/discovery/converters/EurekaJacksonCodec.java @@ -642,7 +642,7 @@ public InstanceInfo deserialize(JsonParser jp, DeserializationContext context) t metadataMap.put(key, value); } }; - builder.setMetadata(metadataMap == null ? Collections.emptyMap() : Collections.synchronizedMap(metadataMap)); + builder.setMetadata(metadataMap == null ? Collections.emptyMap() : metadataMap); break; default: autoUnmarshalEligible(jp.getCurrentName(), jp.getValueAsString(), builder.getRawInstance());