Add precondition checking not null
This commit is contained in:
parent
618cc0e022
commit
00ad2f81c1
|
|
@ -97,6 +97,7 @@ class SpiffeEndpointChannelBuilder {
|
||||||
* @param channelBuilder
|
* @param channelBuilder
|
||||||
*/
|
*/
|
||||||
private static void configureNativeSocketChannel(NettyChannelBuilder channelBuilder) {
|
private static void configureNativeSocketChannel(NettyChannelBuilder channelBuilder) {
|
||||||
|
checkNotNull(channelBuilder, "Channel builder is Null");
|
||||||
if (SystemUtils.IS_OS_LINUX) {
|
if (SystemUtils.IS_OS_LINUX) {
|
||||||
channelBuilder.eventLoopGroup(new EpollEventLoopGroup())
|
channelBuilder.eventLoopGroup(new EpollEventLoopGroup())
|
||||||
.channelType(EpollDomainSocketChannel.class);
|
.channelType(EpollDomainSocketChannel.class);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue