Skip to content

Commit

Permalink
Fixed missing sharable annotation.
Browse files Browse the repository at this point in the history
  • Loading branch information
Taronyu committed Feb 2, 2017
1 parent 5ad6759 commit 9c12775
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

import java.util.List;

import io.netty.channel.ChannelHandler.Sharable;
import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.MessageToMessageEncoder;

Expand All @@ -26,11 +27,12 @@
*
* @author Philipp Thiel
*/
@Sharable
class LineBreakAdder extends MessageToMessageEncoder<String> {

@Override
protected void encode(ChannelHandlerContext ctx, String msg, List<Object> out) throws Exception {
out.add(String.format("%s\r\n", msg));
}
@Override
protected void encode(ChannelHandlerContext ctx, String msg, List<Object> out) throws Exception {
out.add(String.format("%s\r\n", msg));
}

}

0 comments on commit 9c12775

Please sign in to comment.