From e71fbb9f46cd3bd49b68ef30a156bc0715bd979e Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Thu, 18 Sep 2014 23:17:13 -0700 Subject: [PATCH] Implement containsProperty on MapPropertySource Improve the performance of MapPropertySource by directly implementing the containsProperty property. Issue: SPR-12224 --- .../springframework/core/env/MapPropertySource.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/spring-core/src/main/java/org/springframework/core/env/MapPropertySource.java b/spring-core/src/main/java/org/springframework/core/env/MapPropertySource.java index b8537bed63..9f9863dc43 100644 --- a/spring-core/src/main/java/org/springframework/core/env/MapPropertySource.java +++ b/spring-core/src/main/java/org/springframework/core/env/MapPropertySource.java @@ -18,6 +18,7 @@ package org.springframework.core.env; import java.util.Map; +import org.springframework.util.Assert; import org.springframework.util.StringUtils; /** @@ -43,4 +44,15 @@ public class MapPropertySource extends EnumerablePropertySource