This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch camel-2.x
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/camel-2.x by this push:
     new b74e255  CAMEL-13788: Deprecate OUT in favour of getMessage
b74e255 is described below

commit b74e255608d8764c5d4ec8950a0ad94d78703254
Author: Claus Ibsen <[email protected]>
AuthorDate: Fri Jul 26 09:57:00 2019 +0200

    CAMEL-13788: Deprecate OUT in favour of getMessage
---
 camel-core/src/main/java/org/apache/camel/Exchange.java | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/camel-core/src/main/java/org/apache/camel/Exchange.java 
b/camel-core/src/main/java/org/apache/camel/Exchange.java
index 1a1b395..9bd1772 100644
--- a/camel-core/src/main/java/org/apache/camel/Exchange.java
+++ b/camel-core/src/main/java/org/apache/camel/Exchange.java
@@ -415,7 +415,9 @@ public interface Exchange {
      *
      * @return the response
      * @see #getIn()
+     * @deprecated use {@link #getMessage()}
      */
+    @Deprecated
     Message getOut();
 
     /**
@@ -433,7 +435,9 @@ public interface Exchange {
      * @param type the given type
      * @return the message as the given type or <tt>null</tt> if not possible 
to covert to given type
      * @see #getIn(Class)
+     * @deprecated use {@link #getMessage(Class)}
      */
+    @Deprecated
     <T> T getOut(Class<T> type);
 
     /**
@@ -447,7 +451,9 @@ public interface Exchange {
      * Sets the outbound message
      *
      * @param out the outbound message
+     * @deprecated use {@link #setMessage(Message)}
      */
+    @Deprecated
     void setOut(Message out);
 
     /**

Reply via email to