From 0581e49d49aa3622b1fea1623eb512ab95989e41 Mon Sep 17 00:00:00 2001 From: md_5 Date: Tue, 30 Aug 2016 20:22:02 +1000 Subject: [PATCH] Update Netty --- pom.xml | 2 +- proxy/pom.xml | 6 ++++++ .../src/main/java/net/md_5/bungee/netty/PipelineUtils.java | 6 +++--- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/pom.xml b/pom.xml index de51d88896..ad09889315 100644 --- a/pom.xml +++ b/pom.xml @@ -66,7 +66,7 @@ unknown - 4.0.40.Final + 4.1.5.Final 1.7 1.7 UTF-8 diff --git a/proxy/pom.xml b/proxy/pom.xml index 55bba906a5..515f2eef19 100644 --- a/proxy/pom.xml +++ b/proxy/pom.xml @@ -25,6 +25,12 @@ ${netty.version} compile + + io.netty + netty-handler + ${netty.version} + compile + io.netty netty-transport-native-epoll diff --git a/proxy/src/main/java/net/md_5/bungee/netty/PipelineUtils.java b/proxy/src/main/java/net/md_5/bungee/netty/PipelineUtils.java index 621a06c8cb..a274dde7c9 100644 --- a/proxy/src/main/java/net/md_5/bungee/netty/PipelineUtils.java +++ b/proxy/src/main/java/net/md_5/bungee/netty/PipelineUtils.java @@ -41,9 +41,9 @@ public class PipelineUtils { - public static final AttributeKey LISTENER = new AttributeKey<>( "ListerInfo" ); - public static final AttributeKey USER = new AttributeKey<>( "User" ); - public static final AttributeKey TARGET = new AttributeKey<>( "Target" ); + public static final AttributeKey LISTENER = AttributeKey.valueOf( "ListerInfo" ); + public static final AttributeKey USER = AttributeKey.valueOf( "User" ); + public static final AttributeKey TARGET = AttributeKey.valueOf( "Target" ); public static final ChannelInitializer SERVER_CHILD = new ChannelInitializer() { @Override