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

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


The following commit(s) were added to refs/heads/master by this push:
     new d76f154  [ISSUE #1866] Remove lombok dependency from <shenyu-spi> 
(#1880)
d76f154 is described below

commit d76f154eac4773c6874491d3c77a3f9ffe9a795b
Author: 奕仁 <[email protected]>
AuthorDate: Thu Aug 5 23:02:01 2021 +0800

    [ISSUE #1866] Remove lombok dependency from <shenyu-spi> (#1880)
---
 .../src/main/java/org/apache/shenyu/spi/ExtensionLoader.java      | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git 
a/shenyu-spi/src/main/java/org/apache/shenyu/spi/ExtensionLoader.java 
b/shenyu-spi/src/main/java/org/apache/shenyu/spi/ExtensionLoader.java
index 5f4da4d..50f87b1 100644
--- a/shenyu-spi/src/main/java/org/apache/shenyu/spi/ExtensionLoader.java
+++ b/shenyu-spi/src/main/java/org/apache/shenyu/spi/ExtensionLoader.java
@@ -16,8 +16,9 @@
 
 package org.apache.shenyu.spi;
 
-import lombok.extern.slf4j.Slf4j;
 import org.apache.commons.lang3.StringUtils;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
 
 import java.io.IOException;
 import java.io.InputStream;
@@ -34,10 +35,11 @@ import java.util.concurrent.ConcurrentHashMap;
  *
  * @see <a 
href="https://github.com/apache/dubbo/blob/master/dubbo-common/src/main/java/org/apache/dubbo/common/extension/ExtensionLoader.java";>ExtensionLoader</a>
  */
-@Slf4j
 @SuppressWarnings("all")
 public final class ExtensionLoader<T> {
 
+    private static final Logger LOG = 
LoggerFactory.getLogger(ExtensionLoader.class);
+
     private static final String SHENYU_DIRECTORY = "META-INF/shenyu/";
 
     private static final Map<Class<?>, ExtensionLoader<?>> LOADERS = new 
ConcurrentHashMap<>();
@@ -198,7 +200,7 @@ public final class ExtensionLoader<T> {
                 }
             }
         } catch (IOException t) {
-            log.error("load extension class error {}", fileName, t);
+            LOG.error("load extension class error {}", fileName, t);
         }
     }
 

Reply via email to