Merge "Bug 809: Enhancements to the toaster example"
[controller.git] / opendaylight / netconf / netconf-util / src / main / java / org / opendaylight / controller / netconf / util / handler / EOMFramingMechanismEncoder.java
index 383cebb04f680d2d7a352d1e18a6dcb8f81c3b90..8df62a67020c9b05dcac72bb0d589f42bb7a9076 100644 (file)
@@ -16,8 +16,8 @@ import org.opendaylight.controller.netconf.util.messages.NetconfMessageConstants
 
 public class EOMFramingMechanismEncoder extends MessageToByteEncoder<ByteBuf> {
     @Override
-    protected void encode(ChannelHandlerContext ctx, ByteBuf msg, ByteBuf out) throws Exception {
+    protected void encode(ChannelHandlerContext ctx, ByteBuf msg, ByteBuf out) {
         out.writeBytes(msg);
-        out.writeBytes(NetconfMessageConstants.endOfMessage);
+        out.writeBytes(NetconfMessageConstants.END_OF_MESSAGE);
     }
 }