Skip to content

Commit 48a47d8

Browse files
author
Evan Hu
committed
add plugins
1 parent 68c1f8c commit 48a47d8

File tree

8 files changed

+11
-17
lines changed

8 files changed

+11
-17
lines changed

pom.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,16 @@
153153
<groupId>org.apache.felix</groupId>
154154
<artifactId>maven-bundle-plugin</artifactId>
155155
<extensions>true</extensions>
156+
<version>3.3.0</version>
157+
</plugin>
158+
<plugin>
159+
<groupId>org.apache.maven.plugins</groupId>
160+
<artifactId>maven-compiler-plugin</artifactId>
161+
<version>3.5.1</version>
162+
<configuration>
163+
<source>${maven.compiler.source}</source>
164+
<target>${maven.compiler.target}</target>
165+
</configuration>
156166
</plugin>
157167
</plugins>
158168
</build>

src/main/java/info/xiaomo/core/config/ConfigContainer.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
/**
2-
* 创建日期: 2017年08月21日 17:39
3-
* 创建作者: 杨 强 <[email protected]>
4-
*/
51
package info.xiaomo.core.config;
62

73
import java.util.ArrayList;

src/main/java/info/xiaomo/core/network/mina/code/MassProtocolCodecFactory.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
*
66
* @author wzyi
77
* @version $Id: $Id
8-
* @QQ 156320312
9-
* @Te 18202020823
108
*/
119
public class MassProtocolCodecFactory extends ProtocolCodecFactoryImpl {
1210

src/main/java/info/xiaomo/core/network/mina/code/MassProtocolDecoder.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
*
1212
* @author wzyi
1313
* @version $Id: $Id
14-
* @QQ 156320312
15-
* @Te 18202020823
1614
*/
1715
public class MassProtocolDecoder extends ProtocolDecoderImpl {
1816

@@ -42,7 +40,7 @@ protected boolean doDecode(IoSession session, IoBuffer ib, ProtocolDecoderOutput
4240
int id = ib.getInt();
4341
ib.clear();
4442
log.warn("消息解析异常:长度{},id {}, 大于长度 maxReadSize {}", length, id, maxReadSize);
45-
session.close(true);
43+
session.closeNow();
4644
return false;
4745
}
4846

src/main/java/info/xiaomo/core/network/mina/code/MassProtocolEncoder.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
*
1414
* @author wzyi
1515
* @version $Id: $Id
16-
* @QQ 156320312
17-
* @Te 18202020823
1816
*/
1917
public class MassProtocolEncoder extends ProtocolEncoderImpl {
2018

src/main/java/info/xiaomo/core/network/mina/code/UserProtocolCodecFactory.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
*
66
* @author wzyi
77
* @version $Id: $Id
8-
* @QQ 156320312
9-
* @Te 18202020823
108
*/
119
public class UserProtocolCodecFactory extends ProtocolCodecFactoryImpl {
1210

src/main/java/info/xiaomo/core/network/mina/code/UserProtocolDecoder.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
*
1313
* @author wzyi
1414
* @version $Id: $Id
15-
* @QQ 156320312
16-
* @Te 18202020823
1715
*/
1816
public class UserProtocolDecoder extends ProtocolDecoderImpl {
1917

src/main/java/info/xiaomo/core/network/mina/message/MassMessage.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
*
99
* @author wzyi
1010
* @version $Id: $Id
11-
* @QQ 156320312
12-
* @Te 18202020823
1311
*/
1412
public class MassMessage {
1513

0 commit comments

Comments
 (0)