You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2022/07/16 13:31:37 UTC
[commons-lang] branch master updated: Type safety
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-lang.git
The following commit(s) were added to refs/heads/master by this push:
new e0818e338 Type safety
e0818e338 is described below
commit e0818e3383f71ddff62854f85712cb6b7d187c9b
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sat Jul 16 09:31:32 2022 -0400
Type safety
---
src/main/java/org/apache/commons/lang3/text/StrSubstitutor.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/java/org/apache/commons/lang3/text/StrSubstitutor.java b/src/main/java/org/apache/commons/lang3/text/StrSubstitutor.java
index a39260d8e..191ed0d5c 100644
--- a/src/main/java/org/apache/commons/lang3/text/StrSubstitutor.java
+++ b/src/main/java/org/apache/commons/lang3/text/StrSubstitutor.java
@@ -240,7 +240,7 @@ public class StrSubstitutor {
final Map<String, String> valueMap = new HashMap<>();
final Enumeration<?> propNames = valueProperties.propertyNames();
while (propNames.hasMoreElements()) {
- final String propName = (String) propNames.nextElement();
+ final String propName = String.valueOf(propNames.nextElement());
final String propValue = valueProperties.getProperty(propName);
valueMap.put(propName, propValue);
}