From 4403519e5fb5aa5548c7c469350f8e4b6a2f2eef Mon Sep 17 00:00:00 2001 From: Artem Bilan Date: Thu, 2 Mar 2017 11:07:42 -0500 Subject: [PATCH] INT-4225: Polishing Fix static imports for `@Default` Add JavaDoc for the `SimpleWebServiceOutboundGateway.setExtractPayload()` --- .../springframework/integration/annotation/Default.java | 9 ++------- .../integration/ws/SimpleWebServiceOutboundGateway.java | 7 +++++-- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/spring-integration-core/src/main/java/org/springframework/integration/annotation/Default.java b/spring-integration-core/src/main/java/org/springframework/integration/annotation/Default.java index 7596d2eb82..9885422841 100644 --- a/spring-integration-core/src/main/java/org/springframework/integration/annotation/Default.java +++ b/spring-integration-core/src/main/java/org/springframework/integration/annotation/Default.java @@ -16,13 +16,8 @@ package org.springframework.integration.annotation; -import static java.lang.annotation.ElementType.CONSTRUCTOR; -import static java.lang.annotation.ElementType.FIELD; -import static java.lang.annotation.ElementType.METHOD; -import static java.lang.annotation.ElementType.PARAMETER; -import static java.lang.annotation.ElementType.TYPE; - import java.lang.annotation.Documented; +import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; @@ -40,7 +35,7 @@ import java.lang.annotation.Target; * * @since 5.0 */ -@Target({TYPE, FIELD, METHOD, PARAMETER, CONSTRUCTOR}) +@Target({ElementType.TYPE, ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER, ElementType.CONSTRUCTOR}) @Retention(RetentionPolicy.RUNTIME) @Documented public @interface Default { diff --git a/spring-integration-ws/src/main/java/org/springframework/integration/ws/SimpleWebServiceOutboundGateway.java b/spring-integration-ws/src/main/java/org/springframework/integration/ws/SimpleWebServiceOutboundGateway.java index a3825c12b0..36b54faad3 100644 --- a/spring-integration-ws/src/main/java/org/springframework/integration/ws/SimpleWebServiceOutboundGateway.java +++ b/spring-integration-ws/src/main/java/org/springframework/integration/ws/SimpleWebServiceOutboundGateway.java @@ -85,8 +85,11 @@ public class SimpleWebServiceOutboundGateway extends AbstractWebServiceOutboundG } /** - * - * @param extractPayload + * A flag to return the whole {@link WebServiceMessage} or build + * {@code payload} based on {@link WebServiceMessage} + * and populated headers according {@code headerMapper} configuration. + * Defaults to extract payload. + * @param extractPayload build payload or return a whole {@link WebServiceMessage} * @since 5.0 */ public void setExtractPayload(boolean extractPayload) {