Update Netty

This commit is contained in:
md_5 2016-08-30 20:22:02 +10:00
parent 5c809c2499
commit 0581e49d49
3 changed files with 10 additions and 4 deletions

View File

@ -66,7 +66,7 @@
<properties> <properties>
<build.number>unknown</build.number> <build.number>unknown</build.number>
<netty.version>4.0.40.Final</netty.version> <netty.version>4.1.5.Final</netty.version>
<maven.compiler.source>1.7</maven.compiler.source> <maven.compiler.source>1.7</maven.compiler.source>
<maven.compiler.target>1.7</maven.compiler.target> <maven.compiler.target>1.7</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

View File

@ -25,6 +25,12 @@
<version>${netty.version}</version> <version>${netty.version}</version>
<scope>compile</scope> <scope>compile</scope>
</dependency> </dependency>
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-handler</artifactId>
<version>${netty.version}</version>
<scope>compile</scope>
</dependency>
<dependency> <dependency>
<groupId>io.netty</groupId> <groupId>io.netty</groupId>
<artifactId>netty-transport-native-epoll</artifactId> <artifactId>netty-transport-native-epoll</artifactId>

View File

@ -41,9 +41,9 @@ import net.md_5.bungee.protocol.Varint21LengthFieldPrepender;
public class PipelineUtils public class PipelineUtils
{ {
public static final AttributeKey<ListenerInfo> LISTENER = new AttributeKey<>( "ListerInfo" ); public static final AttributeKey<ListenerInfo> LISTENER = AttributeKey.valueOf( "ListerInfo" );
public static final AttributeKey<UserConnection> USER = new AttributeKey<>( "User" ); public static final AttributeKey<UserConnection> USER = AttributeKey.valueOf( "User" );
public static final AttributeKey<BungeeServerInfo> TARGET = new AttributeKey<>( "Target" ); public static final AttributeKey<BungeeServerInfo> TARGET = AttributeKey.valueOf( "Target" );
public static final ChannelInitializer<Channel> SERVER_CHILD = new ChannelInitializer<Channel>() public static final ChannelInitializer<Channel> SERVER_CHILD = new ChannelInitializer<Channel>()
{ {
@Override @Override