From 78a647059b636fb014fcd8a874aa3f8a61d83a0c Mon Sep 17 00:00:00 2001 From: panson Date: Sat, 21 Nov 2020 15:10:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9E=9A=E4=B8=BE=E7=B1=BB=E7=BB=9F=E4=B8=80?= =?UTF-8?q?=E4=BD=BF=E7=94=A8lombok?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/github/javaguide/enums/RpcConfigEnum.java | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/rpc-framework-common/src/main/java/github/javaguide/enums/RpcConfigEnum.java b/rpc-framework-common/src/main/java/github/javaguide/enums/RpcConfigEnum.java index 3b01296..10a8183 100644 --- a/rpc-framework-common/src/main/java/github/javaguide/enums/RpcConfigEnum.java +++ b/rpc-framework-common/src/main/java/github/javaguide/enums/RpcConfigEnum.java @@ -1,5 +1,10 @@ package github.javaguide.enums; +import lombok.AllArgsConstructor; +import lombok.Getter; + +@AllArgsConstructor +@Getter public enum RpcConfigEnum { RPC_CONFIG_PATH("rpc.properties"), @@ -7,13 +12,4 @@ public enum RpcConfigEnum { private final String propertyValue; - - RpcConfigEnum(String propertyValue) { - this.propertyValue = propertyValue; - } - - public String getPropertyValue() { - return propertyValue; - } - } -- GitLab