Bump mdsal to 5.0.2
[openflowplugin.git] / openflowplugin-impl / src / main / java / org / opendaylight / openflowplugin / impl / protocol / serialization / match / VlanPcpEntrySerializer.java
index e3be094e2cd778c471799f0dc607eae8405325ba..519438c79da713d49491b8a1678c335b9eda811c 100644 (file)
@@ -16,18 +16,18 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026
 public class VlanPcpEntrySerializer extends AbstractMatchEntrySerializer {
 
     @Override
-    public void serialize(Match match, ByteBuf outBuffer) {
+    public void serialize(final Match match, final ByteBuf outBuffer) {
         super.serialize(match, outBuffer);
-        outBuffer.writeByte(match.getVlanMatch().getVlanPcp().getValue());
+        outBuffer.writeByte(match.getVlanMatch().getVlanPcp().getValue().toJava());
     }
 
     @Override
-    public boolean matchTypeCheck(Match match) {
+    public boolean matchTypeCheck(final Match match) {
         return match.getVlanMatch() != null && match.getVlanMatch().getVlanPcp() != null;
     }
 
     @Override
-    protected boolean getHasMask(Match match) {
+    protected boolean getHasMask(final Match match) {
         return false;
     }