From 72cd24446db45b0f3af483e399fbced392286f96 Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Wed, 7 Jun 2017 17:03:31 -0700 Subject: [PATCH] Make resolvePropertyName available to subclasses Change `SystemEnvironmentPropertySource.resolvePropertyName` to a protected final method so that subclasses may call it. Issue: SPR-15617 --- .../core/env/SystemEnvironmentPropertySource.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-core/src/main/java/org/springframework/core/env/SystemEnvironmentPropertySource.java b/spring-core/src/main/java/org/springframework/core/env/SystemEnvironmentPropertySource.java index b6237dabcc6..6277fa9646f 100644 --- a/spring-core/src/main/java/org/springframework/core/env/SystemEnvironmentPropertySource.java +++ b/spring-core/src/main/java/org/springframework/core/env/SystemEnvironmentPropertySource.java @@ -102,7 +102,7 @@ public class SystemEnvironmentPropertySource extends MapPropertySource { * any underscore / uppercase variation thereof. Return the resolved name if one is * found or otherwise the original name. Never returns {@code null}. */ - private String resolvePropertyName(String name) { + protected final String resolvePropertyName(String name) { Assert.notNull(name, "Property name must not be null"); String resolvedName = checkPropertyName(name); if (resolvedName != null) {