This is an automated email from the ASF dual-hosted git repository.
lw1243925457 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 096ce48 fix: remove lombok (#1896)
096ce48 is described below
commit 096ce4819f4190411dbccff166f5ba27657049e7
Author: Lahm Xu <[email protected]>
AuthorDate: Mon Aug 9 07:14:30 2021 +0800
fix: remove lombok (#1896)
---
.../org/apache/shenyu/protocol/grpc/message/JsonMessage.java | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git
a/shenyu-protocol/shenyu-protocol-grpc/src/main/java/org/apache/shenyu/protocol/grpc/message/JsonMessage.java
b/shenyu-protocol/shenyu-protocol-grpc/src/main/java/org/apache/shenyu/protocol/grpc/message/JsonMessage.java
index 3c59960..ee82875 100644
---
a/shenyu-protocol/shenyu-protocol-grpc/src/main/java/org/apache/shenyu/protocol/grpc/message/JsonMessage.java
+++
b/shenyu-protocol/shenyu-protocol-grpc/src/main/java/org/apache/shenyu/protocol/grpc/message/JsonMessage.java
@@ -24,9 +24,10 @@ import com.google.protobuf.Descriptors;
import com.google.protobuf.DynamicMessage;
import com.google.protobuf.ExtensionRegistryLite;
import io.grpc.MethodDescriptor;
-import lombok.extern.slf4j.Slf4j;
import org.apache.shenyu.common.utils.GsonUtils;
import org.apache.shenyu.protocol.grpc.constant.GrpcConstants;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
import java.io.IOException;
import java.io.InputStream;
@@ -37,8 +38,10 @@ import java.util.Map;
/**
* JsonMessage.
*/
-@Slf4j
public class JsonMessage {
+
+ private static final Logger LOG =
LoggerFactory.getLogger(JsonMessage.class);
+
/**
* methodDescriptorCache.
*/
@@ -68,7 +71,7 @@ public class JsonMessage {
.buildFrom(fileDescriptorProto, new
Descriptors.FileDescriptor[0]);
return
fileDescriptor.findMessageTypeByName(GrpcConstants.JSON_DESCRIPTOR_PROTO_NAME);
} catch (Descriptors.DescriptorValidationException e) {
- log.error("dynamic build JsonMarshaller descriptor is fail: {}",
e.getMessage());
+ LOG.error("dynamic build JsonMarshaller descriptor is fail: {}",
e.getMessage());
throw new RuntimeException("dynamic build JsonMarshaller
descriptor is fail", e);
}
}