camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject [1/5] camel git commit: CAMEL-10208: Polished
Date Mon, 01 Aug 2016 11:51:39 GMT
Repository: camel
Updated Branches:
  refs/heads/master 1719c8ef4 -> ca5ff50b7


CAMEL-10208: Polished


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/cbe9069f
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/cbe9069f
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/cbe9069f

Branch: refs/heads/master
Commit: cbe9069f89bd8443f0c5aa8189622a3b0abd8d4a
Parents: 1719c8e
Author: Claus Ibsen <davsclaus@apache.org>
Authored: Mon Aug 1 12:58:37 2016 +0200
Committer: Claus Ibsen <davsclaus@apache.org>
Committed: Mon Aug 1 12:58:37 2016 +0200

----------------------------------------------------------------------
 .../camel/builder/FluentProducerTemplate.java   | 29 ++++++--------------
 1 file changed, 8 insertions(+), 21 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/cbe9069f/camel-core/src/main/java/org/apache/camel/builder/FluentProducerTemplate.java
----------------------------------------------------------------------
diff --git a/camel-core/src/main/java/org/apache/camel/builder/FluentProducerTemplate.java
b/camel-core/src/main/java/org/apache/camel/builder/FluentProducerTemplate.java
index 54c34e5..e582d9f 100644
--- a/camel-core/src/main/java/org/apache/camel/builder/FluentProducerTemplate.java
+++ b/camel-core/src/main/java/org/apache/camel/builder/FluentProducerTemplate.java
@@ -67,7 +67,6 @@ public class FluentProducerTemplate {
      *
      * @param key the key of the header
      * @param value the value of the header
-     * @return this FluentProducerTemplate instance
      */
     public FluentProducerTemplate withHeader(String key, Object value) {
         if (headers == null) {
@@ -81,8 +80,6 @@ public class FluentProducerTemplate {
 
     /**
      * Remove the headers.
-     *
-     * @return this FluentProducerTemplate instance
      */
     public FluentProducerTemplate clearHeaders() {
         if (headers != null) {
@@ -96,7 +93,6 @@ public class FluentProducerTemplate {
      * Set the message body
      *
      * @param body the body
-     * @return this FluentProducerTemplate instance
      */
     public FluentProducerTemplate withBody(Object body) {
         this.body = body;
@@ -109,7 +105,6 @@ public class FluentProducerTemplate {
      *
      * @param body the body
      * @param type the type which the body should be converted to
-     * @return this FluentProducerTemplate instance
      */
     public FluentProducerTemplate withBodyAs(Object body, Class<?> type) {
         this.body = type != null
@@ -121,8 +116,6 @@ public class FluentProducerTemplate {
 
     /**
      * Remove the body.
-     *
-     * @return this FluentProducerTemplate instance
      */
     public FluentProducerTemplate clearBody() {
         this.body = null;
@@ -150,8 +143,7 @@ public class FluentProducerTemplate {
      *
      * Note that it is invoked only once.
      *
-     * @param templateCustomizer
-     * @return
+     * @param templateCustomizer the customizer
      */
     public FluentProducerTemplate withTemplateCustomizer(final Consumer<ProducerTemplate>
templateCustomizer) {
         this.templateCustomizer = templateCustomizer;
@@ -161,8 +153,7 @@ public class FluentProducerTemplate {
     /**
      * Set the exchange to use for send.
      *
-     * @param exchange
-     * @return
+     * @param exchange the exchange
      */
     public FluentProducerTemplate withExchange(final Exchange exchange) {
         return withExchange(() -> exchange);
@@ -172,8 +163,7 @@ public class FluentProducerTemplate {
      * Set the exchangeSupplier which will be invoke to get the exchange to be
      * used for send.
      *
-     * @param exchangeSupplier
-     * @return
+     * @param exchangeSupplier the supplier
      */
     public FluentProducerTemplate withExchange(final Supplier<Exchange> exchangeSupplier)
{
         this.exchangeSupplier = exchangeSupplier;
@@ -208,8 +198,7 @@ public class FluentProducerTemplate {
      * Set the processorSupplier which will be invoke to get the processor to be
      * used for send/request.
      *
-     * @param processorSupplier
-     * @return
+     * @param processorSupplier the supplier
      */
     public FluentProducerTemplate withProcessor(final Supplier<Processor> processorSupplier)
{
         this.processorSupplier = processorSupplier;
@@ -220,7 +209,6 @@ public class FluentProducerTemplate {
      * Set the message body
      *
      * @param endpointUri the endpoint URI to send to
-     * @return this FluentProducerTemplate instance
      */
     public FluentProducerTemplate to(String endpointUri) {
         return to(context.getEndpoint(endpointUri));
@@ -230,7 +218,6 @@ public class FluentProducerTemplate {
      * Set the message body
      *
      * @param endpoint the endpoint to send to
-     * @return this FluentProducerTemplate instance
      */
     public FluentProducerTemplate to(Endpoint endpoint) {
         this.endpoint = endpoint;
@@ -245,7 +232,7 @@ public class FluentProducerTemplate {
      * Send to an endpoint returning any result output body.
      *
      * @return the result
-     * @throws CamelExecutionException
+     * @throws CamelExecutionException is thrown if error occurred
      */
     public Object request() throws CamelExecutionException {
         return request(Object.class);
@@ -256,7 +243,7 @@ public class FluentProducerTemplate {
      *
      * @param type the expected response type
      * @return the result
-     * @throws CamelExecutionException
+     * @throws CamelExecutionException is thrown if error occurred
      */
     @SuppressWarnings("unchecked")
     public <T> T request(Class<T> type) throws CamelExecutionException {
@@ -316,7 +303,7 @@ public class FluentProducerTemplate {
     /**
      * Send to an endpoint
      *
-     * @throws CamelExecutionException
+     * @throws CamelExecutionException is thrown if error occurred
      */
     public Exchange send() throws CamelExecutionException {
         return exchangeSupplier != null
@@ -343,7 +330,6 @@ public class FluentProducerTemplate {
      * Create the FluentProducerTemplate by setting the camel context
      *
      * @param context the camel context
-     * @return this FluentProducerTemplate instance
      */
     public static FluentProducerTemplate on(CamelContext context) {
         return new FluentProducerTemplate(context);
@@ -371,4 +357,5 @@ public class FluentProducerTemplate {
             exchange.getIn().setBody(body);
         }
     }
+
 }


Mime
View raw message