You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by tv...@apache.org on 2026/02/17 17:57:21 UTC
(commons-jcs) 04/12: Fix typo in class name
This is an automated email from the ASF dual-hosted git repository.
tv pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-jcs.git
commit 768e3b843248fe6257e3615802ce63d9df0b42fe
Author: Thomas Vandahl <tv...@apache.org>
AuthorDate: Tue Feb 17 14:50:05 2026 +0100
Fix typo in class name
---
.../lang/{DefaultSubsitutor.java => DefaultSubstitutor.java} | 2 +-
.../jcs4/jcache/lang/{Subsitutor.java => Substitutor.java} | 12 ++++++------
2 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/commons-jcs4-jcache/src/main/java/org/apache/commons/jcs4/jcache/lang/DefaultSubsitutor.java b/commons-jcs4-jcache/src/main/java/org/apache/commons/jcs4/jcache/lang/DefaultSubstitutor.java
similarity index 95%
rename from commons-jcs4-jcache/src/main/java/org/apache/commons/jcs4/jcache/lang/DefaultSubsitutor.java
rename to commons-jcs4-jcache/src/main/java/org/apache/commons/jcs4/jcache/lang/DefaultSubstitutor.java
index 418b87d0..5138f1fc 100644
--- a/commons-jcs4-jcache/src/main/java/org/apache/commons/jcs4/jcache/lang/DefaultSubsitutor.java
+++ b/commons-jcs4-jcache/src/main/java/org/apache/commons/jcs4/jcache/lang/DefaultSubstitutor.java
@@ -19,7 +19,7 @@
package org.apache.commons.jcs4.jcache.lang;
-public class DefaultSubsitutor implements Subsitutor
+public class DefaultSubstitutor implements Substitutor
{
@Override
public String substitute(final String value)
diff --git a/commons-jcs4-jcache/src/main/java/org/apache/commons/jcs4/jcache/lang/Subsitutor.java b/commons-jcs4-jcache/src/main/java/org/apache/commons/jcs4/jcache/lang/Substitutor.java
similarity index 84%
rename from commons-jcs4-jcache/src/main/java/org/apache/commons/jcs4/jcache/lang/Subsitutor.java
rename to commons-jcs4-jcache/src/main/java/org/apache/commons/jcs4/jcache/lang/Substitutor.java
index feba128c..2d39c583 100644
--- a/commons-jcs4-jcache/src/main/java/org/apache/commons/jcs4/jcache/lang/Subsitutor.java
+++ b/commons-jcs4-jcache/src/main/java/org/apache/commons/jcs4/jcache/lang/Substitutor.java
@@ -19,21 +19,21 @@
package org.apache.commons.jcs4.jcache.lang;
-public interface Subsitutor
+public interface Substitutor
{
final class Helper {
- public static final Subsitutor INSTANCE;
+ public static final Substitutor INSTANCE;
static {
- Subsitutor value = null;
+ Substitutor value = null;
for (final String name : new String[]
{ // ordered by features
"org.apache.commons.jcs4.jcache.lang.Lang3Substitutor",
- "org.apache.commons.jcs4.jcache.lang.DefaultSubsitutor"
+ "org.apache.commons.jcs4.jcache.lang.DefaultSubstitutor"
})
{
try
{
- value = (Subsitutor) Subsitutor.class.getClassLoader().loadClass(name).getDeclaredConstructor().newInstance();
+ value = (Substitutor) Substitutor.class.getClassLoader().loadClass(name).getDeclaredConstructor().newInstance();
value.substitute("${java.version}"); // ensure it works
}
catch (final Throwable e) // not Exception otherwise NoClassDefFoundError
@@ -42,7 +42,7 @@ public interface Subsitutor
}
}
if (value == null) {
- throw new IllegalStateException("Can't find a " + Subsitutor.class.getName());
+ throw new IllegalStateException("Can't find a " + Substitutor.class.getName());
}
INSTANCE = value;
}