Fix checkstyle complains
[bgpcep.git] / bgp / rib-impl / src / main / java / org / opendaylight / protocol / bgp / rib / impl / BGPByteToMessageDecoder.java
index 1a6ca0473b1d9f981438befb54336d5c27e870a3..9cd64916b2531b6925dad0d81731874b46293cc2 100644 (file)
@@ -23,26 +23,23 @@ import org.opendaylight.protocol.bgp.parser.spi.pojo.PeerSpecificParserConstrain
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-/**
- *
- */
 final class BGPByteToMessageDecoder extends ByteToMessageDecoder {
     private static final Logger LOG = LoggerFactory.getLogger(BGPByteToMessageDecoder.class);
     private final MessageRegistry registry;
     private final PeerSpecificParserConstraintProvider constraints;
 
-    public BGPByteToMessageDecoder(final MessageRegistry registry) {
+    BGPByteToMessageDecoder(final MessageRegistry registry) {
         this.constraints = new PeerSpecificParserConstraintImpl();
         this.registry = requireNonNull(registry);
     }
 
-    public <T extends PeerConstraint> boolean addDecoderConstraint(final Class<T> classType, final T peerConstraint) {
+    <T extends PeerConstraint> boolean addDecoderConstraint(final Class<T> classType, final T peerConstraint) {
         return this.constraints.addPeerConstraint(classType, peerConstraint);
     }
 
     @Override
-    protected void decode(final ChannelHandlerContext ctx, final ByteBuf in, final List<Object> out) throws BGPDocumentedException,
-            BGPParsingException {
+    protected void decode(final ChannelHandlerContext ctx, final ByteBuf in, final List<Object> out)
+            throws BGPDocumentedException, BGPParsingException {
         if (in.isReadable()) {
             if (LOG.isTraceEnabled()) {
                 LOG.trace("Received to decode: {}", ByteBufUtil.hexDump(in));