Fix more issues from Sonar report

This commit is contained in:
Artem Bilan
2022-11-03 12:44:26 -04:00
parent 0b9bab313b
commit 5f1c0c17de
13 changed files with 60 additions and 50 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2020 the original author or authors.
* Copyright 2002-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -59,7 +59,7 @@ public class UnicastReceivingChannelAdapter extends AbstractInternetProtocolRece
private int soSendBufferSize = -1;
private SocketCustomizer socketCustomizer = socket -> { };
private SocketCustomizer socketCustomizer = (aSocket) -> { };
/**
* Constructs a UnicastReceivingChannelAdapter that listens on the specified port.

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2001-2020 the original author or authors.
* Copyright 2001-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -50,7 +50,7 @@ import org.springframework.util.StringUtils;
/**
* A {@link org.springframework.messaging.MessageHandler} implementation that maps a Message into
* a UDP datagram packet and sends that to the specified host and port.
*
* <p>
* Messages can be basic, with no support for reliability, can be prefixed
* by a length so the receiving end can detect truncation, and can require
* a UDP acknowledgment to confirm delivery.
@@ -101,7 +101,7 @@ public class UnicastSendingMessageHandler extends
private EvaluationContext evaluationContext;
private SocketCustomizer socketCustomizer = socket -> { };
private SocketCustomizer socketCustomizer = (aSocket) -> { };
private volatile CountDownLatch ackLatch;