* 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.openflowplugin.impl.protocol.deserialization.match;
-import java.util.Objects;
-
+import io.netty.buffer.ByteBuf;
import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.flow.MatchBuilder;
import org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026.match.ProtocolMatchFieldsBuilder;
import org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026.protocol.match.fields.PbbBuilder;
-import io.netty.buffer.ByteBuf;
-
public class PbbEntryDeserializer extends AbstractMatchEntryDeserializer {
@Override
pbbBuilder.setPbbMask((long) message.readUnsignedMedium());
}
- if (Objects.isNull(builder.getProtocolMatchFields())) {
+ if (builder.getProtocolMatchFields() == null) {
builder.setProtocolMatchFields(new ProtocolMatchFieldsBuilder()
.setPbb(pbbBuilder.build())
.build());
- } else if (Objects.isNull(builder.getProtocolMatchFields().getPbb())) {
+ } else if (builder.getProtocolMatchFields().getPbb() == null) {
builder.setProtocolMatchFields(new ProtocolMatchFieldsBuilder(builder.getProtocolMatchFields())
.setPbb(pbbBuilder.build())
.build());