From 635ef92e8b3a16a9704166a128899374644e2070 Mon Sep 17 00:00:00 2001 From: qi_liang Date: Wed, 30 Oct 2019 16:36:00 +0800 Subject: [PATCH] =?UTF-8?q?1.interface=20=E5=AE=9A=E4=B9=89=E5=8F=98?= =?UTF-8?q?=E9=87=8F=EF=BC=8C=E9=BB=98=E8=AE=A4=E6=98=AF=E5=B8=B8=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- proxy-protocol/Constants.java | 13 ------------- .../org/fengfei/lanproxy/protocol/Constants.java | 6 +++--- 2 files changed, 3 insertions(+), 16 deletions(-) delete mode 100644 proxy-protocol/Constants.java diff --git a/proxy-protocol/Constants.java b/proxy-protocol/Constants.java deleted file mode 100644 index d15aee5..0000000 --- a/proxy-protocol/Constants.java +++ /dev/null @@ -1,13 +0,0 @@ -package org.fengfei.lanproxy.server; - -import io.netty.channel.Channel; -import io.netty.util.AttributeKey; - -public interface Constants { - - public static final AttributeKey NEXT_CHANNEL = AttributeKey.newInstance("nxt_channel"); - - public static final AttributeKey USER_ID = AttributeKey.newInstance("user_id"); - - public static final AttributeKey CLIENT_KEY = AttributeKey.newInstance("client_key"); -} diff --git a/proxy-protocol/src/main/java/org/fengfei/lanproxy/protocol/Constants.java b/proxy-protocol/src/main/java/org/fengfei/lanproxy/protocol/Constants.java index d4c4317..ac095e6 100644 --- a/proxy-protocol/src/main/java/org/fengfei/lanproxy/protocol/Constants.java +++ b/proxy-protocol/src/main/java/org/fengfei/lanproxy/protocol/Constants.java @@ -5,9 +5,9 @@ import io.netty.util.AttributeKey; public interface Constants { - public static final AttributeKey NEXT_CHANNEL = AttributeKey.newInstance("nxt_channel"); + AttributeKey NEXT_CHANNEL = AttributeKey.newInstance("nxt_channel"); - public static final AttributeKey USER_ID = AttributeKey.newInstance("user_id"); + AttributeKey USER_ID = AttributeKey.newInstance("user_id"); - public static final AttributeKey CLIENT_KEY = AttributeKey.newInstance("client_key"); + AttributeKey CLIENT_KEY = AttributeKey.newInstance("client_key"); }