This is an automated email from the ASF dual-hosted git repository.

duanzhengqiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git


The following commit(s) were added to refs/heads/master by this push:
     new 32eb452601c Fix typo in URLArgumentLine class (#30290)
32eb452601c is described below

commit 32eb452601ce6995f65df37a60540816f36e7720
Author: ilyas ahsan <[email protected]>
AuthorDate: Mon Feb 26 12:03:35 2024 +0700

    Fix typo in URLArgumentLine class (#30290)
---
 .../apache/shardingsphere/infra/url/core/arg/URLArgumentLine.java | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git 
a/infra/url/core/src/main/java/org/apache/shardingsphere/infra/url/core/arg/URLArgumentLine.java
 
b/infra/url/core/src/main/java/org/apache/shardingsphere/infra/url/core/arg/URLArgumentLine.java
index c884d4bccf7..488196f9577 100644
--- 
a/infra/url/core/src/main/java/org/apache/shardingsphere/infra/url/core/arg/URLArgumentLine.java
+++ 
b/infra/url/core/src/main/java/org/apache/shardingsphere/infra/url/core/arg/URLArgumentLine.java
@@ -39,7 +39,7 @@ public final class URLArgumentLine {
     
     private final String argDefaultValue;
     
-    private final Matcher placehodlerMatcher;
+    private final Matcher placeholderMatcher;
     
     /**
      * Parse URL argument line.
@@ -65,12 +65,12 @@ public final class URLArgumentLine {
     public String replaceArgument(final URLArgumentPlaceholderType type) {
         String argumentValue = getArgumentValue(type);
         if (!Strings.isNullOrEmpty(argumentValue)) {
-            return placehodlerMatcher.replaceAll(argumentValue);
+            return placeholderMatcher.replaceAll(argumentValue);
         }
         if (!argDefaultValue.isEmpty()) {
-            return placehodlerMatcher.replaceAll(argDefaultValue);
+            return placeholderMatcher.replaceAll(argDefaultValue);
         }
-        String modifiedLineWithSpace = placehodlerMatcher.replaceAll("");
+        String modifiedLineWithSpace = placeholderMatcher.replaceAll("");
         return modifiedLineWithSpace.substring(0, 
modifiedLineWithSpace.length() - 1);
     }
     

Reply via email to