Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Commit 351127f

Browse files
committed
Interpolation only for String values.
1 parent e8ee597 commit 351127f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/com/morgan/design/properties/internal/ReadablePropertySourcesPlaceholderConfigurer.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ public void startWatching() {
9595

9696
public Object resolveProperty(final Object property) {
9797
Object resolvedPropertyValue = this.properties.get(this.propertyResolver.resolveProperty(property));
98+
if (!(resolvedPropertyValue instanceof String))
99+
return resolvedPropertyValue;
98100
while (this.propertyResolver.requiresFurtherResoltuion(resolvedPropertyValue)) {
99101
String resolvedValueStr = resolvedPropertyValue.toString();
100102
int startingIndex = resolvedValueStr.indexOf("${");

0 commit comments

Comments
 (0)