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

roryqi pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-uniffle.git


The following commit(s) were added to refs/heads/master by this push:
     new 00454c15 [#697] fix: use the naive equals method to avoid introducing 
additional dependencies (#698)
00454c15 is described below

commit 00454c15a2fd8e622ab3655ece6052c5b0f07c74
Author: Junfan Zhang <[email protected]>
AuthorDate: Wed Mar 8 18:58:42 2023 +0800

    [#697] fix: use the naive equals method to avoid introducing additional 
dependencies (#698)
    
    ### What changes were proposed in this pull request?
    use the naive equals method to avoid introducing additional dependencies
    
    ### Why are the changes needed?
    Fix: #697
    
    ### Does this PR introduce _any_ user-facing change?
    No.
    
    ### How was this patch tested?
    Don't need
---
 .../org/apache/uniffle/storage/common/DefaultStorageMediaProvider.java | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git 
a/storage/src/main/java/org/apache/uniffle/storage/common/DefaultStorageMediaProvider.java
 
b/storage/src/main/java/org/apache/uniffle/storage/common/DefaultStorageMediaProvider.java
index 88800fa9..a2da93fe 100644
--- 
a/storage/src/main/java/org/apache/uniffle/storage/common/DefaultStorageMediaProvider.java
+++ 
b/storage/src/main/java/org/apache/uniffle/storage/common/DefaultStorageMediaProvider.java
@@ -29,7 +29,6 @@ import java.util.List;
 import com.google.common.annotations.VisibleForTesting;
 import org.apache.commons.lang.StringUtils;
 import org.apache.commons.lang.SystemUtils;
-import org.apache.directory.api.util.Strings;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
@@ -47,7 +46,7 @@ public class DefaultStorageMediaProvider implements 
StorageMediaProvider {
     try {
       URI uri = new URI(baseDir);
       String scheme = uri.getScheme();
-      if (Strings.equals(scheme, HDFS)) {
+      if (HDFS.equals(scheme)) {
         return StorageMedia.HDFS;
       } else if (scheme != null && 
OBJECT_STORE_SCHEMAS.contains(scheme.toLowerCase())) {
         return StorageMedia.OBJECT_STORE;

Reply via email to