BUG 5031:
[bgpcep.git] / bgp / linkstate / src / main / java / org / opendaylight / protocol / bgp / linkstate / impl / attribute / sr / SrPrefixAttributesParser.java
@@ -5,10 +5,10 @@
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
  * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
-package org.opendaylight.protocol.bgp.linkstate.attribute.sr;
+package org.opendaylight.protocol.bgp.linkstate.impl.attribute.sr;
 
 import io.netty.buffer.ByteBuf;
-import org.opendaylight.protocol.bgp.linkstate.attribute.sr.SidLabelIndexParser.Size;
+import org.opendaylight.protocol.bgp.linkstate.impl.attribute.sr.SidLabelIndexParser.Size;
 import org.opendaylight.protocol.util.BitArray;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.linkstate.rev150210.ProtocolId;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.linkstate.rev150210.prefix.state.SrPrefix;
@@ -23,10 +23,6 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.segm
 
 public final class SrPrefixAttributesParser {
 
-    private SrPrefixAttributesParser() {
-        throw new UnsupportedOperationException();
-    }
-
     /* Flags */
     private static final int RE_ADVERTISEMENT = 0;
     private static final int NODE_SID = 1;
@@ -37,9 +33,12 @@ public final class SrPrefixAttributesParser {
     private static final int VALUE = 4;
     private static final int LOCAL = 5;
     private static final int FLAGS_SIZE = 8;
-
     private static final int RESERVED_PREFIX = 2;
 
+    private SrPrefixAttributesParser() {
+        throw new UnsupportedOperationException();
+    }
+
     public static SrPrefix parseSrPrefix(final ByteBuf buffer, final ProtocolId protocol) {
         final SrPrefixBuilder builder = new SrPrefixBuilder();
         builder.setFlags(parsePrefixFlags(BitArray.valueOf(buffer, FLAGS_SIZE), protocol));
@@ -68,7 +67,7 @@ public final class SrPrefixAttributesParser {
         serializePrefixAttributes(srPrefix.getFlags(), srPrefix.getAlgorithm(), srPrefix.getSidLabelIndex(), aggregator);
     }
 
-    static void serializePrefixAttributes(final Flags flags, final Algorithm algorithm, final SidLabelIndex sidLabelIndex, final ByteBuf buffer) {
+    public static void serializePrefixAttributes(final Flags flags, final Algorithm algorithm, final SidLabelIndex sidLabelIndex, final ByteBuf buffer) {
         final BitArray bitFlags = serializePrefixFlags(flags, sidLabelIndex);
         bitFlags.toByteBuf(buffer);
         buffer.writeByte(algorithm.getIntValue());