You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2022/03/08 11:32:31 UTC

[camel] 04/14: CAMEL-15520: suprress warnings when usage of deprecated methods is valid

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

acosentino pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 1f3b68952201b86bcacc9f811fddf8670e7f71a4
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Tue Mar 8 08:53:20 2022 +0100

    CAMEL-15520: suprress warnings when usage of deprecated methods is valid
---
 .../src/main/java/org/apache/camel/support/AbstractExchange.java       | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/core/camel-support/src/main/java/org/apache/camel/support/AbstractExchange.java b/core/camel-support/src/main/java/org/apache/camel/support/AbstractExchange.java
index b5491e7..b5cab56 100644
--- a/core/camel-support/src/main/java/org/apache/camel/support/AbstractExchange.java
+++ b/core/camel-support/src/main/java/org/apache/camel/support/AbstractExchange.java
@@ -523,6 +523,7 @@ class AbstractExchange implements ExtendedExchange {
         return out;
     }
 
+    @SuppressWarnings("deprecated")
     @Override
     public <T> T getOut(Class<T> type) {
         if (!hasOut()) {
@@ -541,11 +542,13 @@ class AbstractExchange implements ExtendedExchange {
         return context.getTypeConverter().convertTo(type, this, out);
     }
 
+    @SuppressWarnings("deprecated")
     @Override
     public boolean hasOut() {
         return out != null;
     }
 
+    @SuppressWarnings("deprecated")
     @Override
     public void setOut(Message out) {
         this.out = out;