X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=bgp%2Fflowspec%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fprotocol%2Fbgp%2Fflowspec%2FFSDscpHandler.java;h=0e4261cb6a4b113f59a89d2d24dc8d0e8b937493;hb=5ddbbec3193f9dfcbb980379a5454b70fe4847ea;hp=0f0148ece3c27bd6a7eacb550b705c298aa2271d;hpb=1e4e17a664b64b3a09bb0afda83826166280bb53;p=bgpcep.git diff --git a/bgp/flowspec/src/main/java/org/opendaylight/protocol/bgp/flowspec/FSDscpHandler.java b/bgp/flowspec/src/main/java/org/opendaylight/protocol/bgp/flowspec/FSDscpHandler.java index 0f0148ece3..0e4261cb6a 100644 --- a/bgp/flowspec/src/main/java/org/opendaylight/protocol/bgp/flowspec/FSDscpHandler.java +++ b/bgp/flowspec/src/main/java/org/opendaylight/protocol/bgp/flowspec/FSDscpHandler.java @@ -7,6 +7,8 @@ */ package org.opendaylight.protocol.bgp.flowspec; +import static java.util.Objects.requireNonNull; + import com.google.common.base.Preconditions; import io.netty.buffer.ByteBuf; import java.util.ArrayList; @@ -34,7 +36,7 @@ public final class FSDscpHandler implements FlowspecTypeParser, FlowspecTypeSeri @Override public FlowspecType parseType(ByteBuf buffer) { - Preconditions.checkNotNull(buffer, "input buffer is null, missing data to parse."); + requireNonNull(buffer, "input buffer is null, missing data to parse."); return new DscpCaseBuilder().setDscps(parseDscps(buffer)).build(); }