Skip to content

Commit 15d2881

Browse files
committed
Review checkstyle rules of spring-ws-core
See gh-1479
1 parent 4103d90 commit 15d2881

File tree

89 files changed

+161
-118
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+161
-118
lines changed

spring-ws-core/src/main/java/org/springframework/ws/client/core/SourceExtractor.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
* Implementations of this interface perform the actual work of extracting results, but
3535
* don't need to worry about exception handling, or resource handling.
3636
*
37+
* @param <T> the type of the source
3738
* @author Arjen Poutsma
3839
* @since 1.0.0
3940
* @see org.springframework.ws.client.core.WebServiceTemplate

spring-ws-core/src/main/java/org/springframework/ws/client/core/WebServiceMessageExtractor.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
* Implementations of this interface perform the actual work of extracting results, but
3636
* don't need to worry about exception handling, or resource handling.
3737
*
38+
* @param <T> the type of the result object
3839
* @author Arjen Poutsma
3940
* @since 1.0.0
4041
*/

spring-ws-core/src/main/java/org/springframework/ws/client/core/WebServiceTemplate.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ public WebServiceTemplate(Marshaller marshaller, Unmarshaller unmarshaller) {
208208
public String getDefaultUri() {
209209
if (this.destinationProvider != null) {
210210
URI uri = this.destinationProvider.getDestination();
211-
return uri != null ? uri.toString() : null;
211+
return (uri != null) ? uri.toString() : null;
212212
}
213213
else {
214214
return null;
@@ -813,7 +813,7 @@ private void triggerHandleFault(int interceptorIndex, MessageContext messageCont
813813
* returned {@code false}.
814814
* @param interceptorIndex index of last interceptor that successfully completed
815815
* @param messageContext the message context
816-
* @param ex Exception thrown on handler execution, or {@code null} if none
816+
* @param ex exception thrown on handler execution, or {@code null} if none
817817
* @see ClientInterceptor#afterCompletion
818818
*/
819819
private void triggerAfterCompletion(int interceptorIndex, MessageContext messageContext, Exception ex)

spring-ws-core/src/main/java/org/springframework/ws/client/support/WebServiceAccessor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ protected WebServiceConnection createConnection(URI uri) throws IOException {
113113
try {
114114
this.logger.debug("Opening [" + connection + "] to [" + connection.getUri() + "]");
115115
}
116-
catch (URISyntaxException e) {
116+
catch (URISyntaxException ex) {
117117
// ignore
118118
}
119119
}

spring-ws-core/src/main/java/org/springframework/ws/client/support/destination/Wsdl11DestinationProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ protected URI lookupDestination() {
130130
if (this.logger.isDebugEnabled()) {
131131
this.logger.debug("Found location [" + location + "] in " + this.wsdlResource);
132132
}
133-
return location != null ? URI.create(location) : null;
133+
return (location != null) ? URI.create(location) : null;
134134
}
135135
catch (IOException ex) {
136136
throw new WebServiceIOException("Error extracting location from WSDL [" + this.wsdlResource + "]", ex);

spring-ws-core/src/main/java/org/springframework/ws/client/support/interceptor/AbstractValidatingInterceptor.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,8 @@ public boolean handleRequest(MessageContext messageContext) throws WebServiceCli
184184
try {
185185
errors = this.validator.validate(requestSource);
186186
}
187-
catch (IOException e) {
188-
throw new WebServiceIOException("Could not validate response: " + e.getMessage(), e);
187+
catch (IOException ex) {
188+
throw new WebServiceIOException("Could not validate response: " + ex.getMessage(), ex);
189189
}
190190
if (!ObjectUtils.isEmpty(errors)) {
191191
return handleRequestValidationErrors(messageContext, errors);
@@ -234,8 +234,8 @@ public boolean handleResponse(MessageContext messageContext) throws WebServiceCl
234234
try {
235235
errors = this.validator.validate(responseSource);
236236
}
237-
catch (IOException e) {
238-
throw new WebServiceIOException("Could not validate response: " + e.getMessage(), e);
237+
catch (IOException ex) {
238+
throw new WebServiceIOException("Could not validate response: " + ex.getMessage(), ex);
239239
}
240240
if (!ObjectUtils.isEmpty(errors)) {
241241
return handleResponseValidationErrors(messageContext, errors);

spring-ws-core/src/main/java/org/springframework/ws/client/support/interceptor/ClientInterceptorAdapter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
public abstract class ClientInterceptorAdapter implements ClientInterceptor {
3333

3434
/**
35-
* Logger available to subclasses
35+
* Logger available to subclasses.
3636
*/
3737
protected final Log logger = LogFactory.getLog(getClass());
3838

spring-ws-core/src/main/java/org/springframework/ws/client/support/interceptor/WebServiceValidationException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
@SuppressWarnings("serial")
3131
public class WebServiceValidationException extends WebServiceClientException {
3232

33-
private SAXParseException[] validationErrors;
33+
private final SAXParseException[] validationErrors;
3434

3535
/**
3636
* Create a new instance of the {@code WebServiceValidationException} class.

spring-ws-core/src/main/java/org/springframework/ws/config/annotation/package-info.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@
1717
/**
1818
* Annotations and supporting classes for declarative configuration.
1919
*/
20-
package org.springframework.ws.config.annotation;
20+
package org.springframework.ws.config.annotation;

spring-ws-core/src/main/java/org/springframework/ws/context/MessageContext.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ public interface MessageContext {
6565

6666
/**
6767
* Removes the response message, if any.
68-
*
6968
* @since 1.5.0
7069
*/
7170
void clearResponse();

0 commit comments

Comments
 (0)