Fix Sonar vulnerabilities for varargs
* Fix smell for static `AmqpInboundGateway.attributesHolder` * Fix readOnlyHeaders in the `MessageBuilder`
This commit is contained in:
committed by
Gary Russell
parent
1d08d3bdc2
commit
315f0e711f
@@ -95,11 +95,11 @@ public class RSocketInboundGateway extends MessagingGatewaySupport implements In
|
||||
|
||||
/**
|
||||
* Instantiate based on the provided Ant-style path patterns to map this endpoint for incoming RSocket requests.
|
||||
* @param path the mapping patterns to use.
|
||||
* @param pathArg the mapping patterns to use.
|
||||
*/
|
||||
public RSocketInboundGateway(String... path) {
|
||||
Assert.notNull(path, "'path' must not be null");
|
||||
this.path = path;
|
||||
public RSocketInboundGateway(String... pathArg) {
|
||||
Assert.notNull(pathArg, "'pathArg' must not be null");
|
||||
this.path = Arrays.copyOf(pathArg, pathArg.length);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user