Fix findbugs violations in netconf
[netconf.git] / netconf / netconf-netty-util / src / main / java / org / opendaylight / netconf / nettyutil / handler / EOMFramingMechanismEncoder.java
index fdb0aae950e225d5622f4433cd5a59dd39df89ef..74009a7301b87b9546ba26793ce89c99bb9b854d 100644 (file)
@@ -11,12 +11,11 @@ package org.opendaylight.netconf.nettyutil.handler;
 import io.netty.buffer.ByteBuf;
 import io.netty.channel.ChannelHandlerContext;
 import io.netty.handler.codec.MessageToByteEncoder;
-import org.opendaylight.netconf.util.messages.NetconfMessageConstants;
 
 public class EOMFramingMechanismEncoder extends MessageToByteEncoder<ByteBuf> {
     @Override
     protected void encode(ChannelHandlerContext ctx, ByteBuf msg, ByteBuf out) {
         out.writeBytes(msg);
-        out.writeBytes(NetconfMessageConstants.END_OF_MESSAGE);
+        out.writeBytes(MessageParts.END_OF_MESSAGE);
     }
 }