This is an automated email from the ASF dual-hosted git repository. ebourg pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-text.git
commit 2f7f257eceb1cb0ef2cc3fac0f9087e3a7237f9a Author: Emmanuel Bourg <ebo...@apache.org> AuthorDate: Sat Oct 26 11:11:58 2024 +0200 Replaced redundant type casts --- src/main/java/org/apache/commons/text/StrSubstitutor.java | 2 +- src/main/java/org/apache/commons/text/StringSubstitutor.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/apache/commons/text/StrSubstitutor.java b/src/main/java/org/apache/commons/text/StrSubstitutor.java index 9e0b970d..cf498105 100644 --- a/src/main/java/org/apache/commons/text/StrSubstitutor.java +++ b/src/main/java/org/apache/commons/text/StrSubstitutor.java @@ -251,7 +251,7 @@ public class StrSubstitutor { * and the escaping character. */ public StrSubstitutor() { - this((StrLookup<?>) null, DEFAULT_PREFIX, DEFAULT_SUFFIX, DEFAULT_ESCAPE); + this(null, DEFAULT_PREFIX, DEFAULT_SUFFIX, DEFAULT_ESCAPE); } /** diff --git a/src/main/java/org/apache/commons/text/StringSubstitutor.java b/src/main/java/org/apache/commons/text/StringSubstitutor.java index b83bf003..9973d99f 100644 --- a/src/main/java/org/apache/commons/text/StringSubstitutor.java +++ b/src/main/java/org/apache/commons/text/StringSubstitutor.java @@ -499,7 +499,7 @@ public class StringSubstitutor { * Constructs a new instance with defaults for variable prefix and suffix and the escaping character. */ public StringSubstitutor() { - this((StringLookup) null, DEFAULT_PREFIX, DEFAULT_SUFFIX, DEFAULT_ESCAPE); + this(null, DEFAULT_PREFIX, DEFAULT_SUFFIX, DEFAULT_ESCAPE); } /**