Sonar Fixes
- avoid parameter assignments
This commit is contained in:
committed by
Artem Bilan
parent
76439e3440
commit
1bafe89d49
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2017 the original author or authors.
|
||||
* Copyright 2002-2019 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.
|
||||
@@ -18,6 +18,7 @@ package org.springframework.integration.ws;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
import org.springframework.lang.Nullable;
|
||||
import org.springframework.messaging.Message;
|
||||
import org.springframework.oxm.Marshaller;
|
||||
import org.springframework.oxm.Unmarshaller;
|
||||
@@ -109,9 +110,10 @@ public class MarshallingWebServiceOutboundGateway extends AbstractWebServiceOutb
|
||||
* Sets the provided Marshaller and Unmarshaller on this gateway's WebServiceTemplate.
|
||||
* Neither may be null.
|
||||
* @param marshaller The marshaller.
|
||||
* @param unmarshaller The unmarshaller.
|
||||
* @param unmarshallerArg The unmarshaller.
|
||||
*/
|
||||
private void configureMarshallers(Marshaller marshaller, Unmarshaller unmarshaller) {
|
||||
private void configureMarshallers(Marshaller marshaller, @Nullable Unmarshaller unmarshallerArg) {
|
||||
Unmarshaller unmarshaller = unmarshallerArg;
|
||||
Assert.notNull(marshaller, "marshaller must not be null");
|
||||
if (unmarshaller == null) {
|
||||
Assert.isInstanceOf(Unmarshaller.class, marshaller,
|
||||
|
||||
Reference in New Issue
Block a user