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 2020/01/07 15:45:28 UTC
[camel] branch master updated: CAMEL-14020 - Migrate deprecate
getOut to getMessage in tests, camel-avro
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/master by this push:
new 70312a1 CAMEL-14020 - Migrate deprecate getOut to getMessage in tests, camel-avro
70312a1 is described below
commit 70312a17122c5a2bb12c1966cc1a40fe5f113a06
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue Jan 7 16:43:29 2020 +0100
CAMEL-14020 - Migrate deprecate getOut to getMessage in tests, camel-avro
---
.../component/avro/processors/GetProcessor.java | 4 ++--
.../avro/processors/ReflectionInOutProcessor.java | 4 ++--
.../endpoint/dsl/AvroEndpointBuilderFactory.java | 28 ----------------------
3 files changed, 4 insertions(+), 32 deletions(-)
diff --git a/components/camel-avro/src/test/java/org/apache/camel/component/avro/processors/GetProcessor.java b/components/camel-avro/src/test/java/org/apache/camel/component/avro/processors/GetProcessor.java
index c2219d6..b894565 100644
--- a/components/camel-avro/src/test/java/org/apache/camel/component/avro/processors/GetProcessor.java
+++ b/components/camel-avro/src/test/java/org/apache/camel/component/avro/processors/GetProcessor.java
@@ -35,13 +35,13 @@ public class GetProcessor implements Processor {
Object body = exchange.getIn().getBody();
if (body instanceof Key) {
Value v = keyValue.get((Key) body);
- exchange.getOut().setBody(v);
+ exchange.getMessage().setBody(v);
}
if (body instanceof Object[]) {
Object[] args = (Object[]) body;
if (args.length == 1 && args[0] instanceof Key) {
Value v = keyValue.get((Key) args[0]);
- exchange.getOut().setBody(v);
+ exchange.getMessage().setBody(v);
}
}
}
diff --git a/components/camel-avro/src/test/java/org/apache/camel/component/avro/processors/ReflectionInOutProcessor.java b/components/camel-avro/src/test/java/org/apache/camel/component/avro/processors/ReflectionInOutProcessor.java
index 2e16914..a1601be 100644
--- a/components/camel-avro/src/test/java/org/apache/camel/component/avro/processors/ReflectionInOutProcessor.java
+++ b/components/camel-avro/src/test/java/org/apache/camel/component/avro/processors/ReflectionInOutProcessor.java
@@ -33,9 +33,9 @@ public class ReflectionInOutProcessor implements Processor {
public void process(Exchange exchange) throws Exception {
Object body = exchange.getIn().getBody();
if (body instanceof Object[] && ((Object[])body).length == 0) {
- exchange.getOut().setBody(testReflection.getTestPojo());
+ exchange.getMessage().setBody(testReflection.getTestPojo());
} else if (body instanceof Object) {
- exchange.getOut().setBody(testReflection.increaseAge((Integer)body));
+ exchange.getMessage().setBody(testReflection.increaseAge((Integer)body));
}
}
}
diff --git a/core/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/dsl/AvroEndpointBuilderFactory.java b/core/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/dsl/AvroEndpointBuilderFactory.java
index 5467f4c..8507eb2 100644
--- a/core/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/dsl/AvroEndpointBuilderFactory.java
+++ b/core/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/dsl/AvroEndpointBuilderFactory.java
@@ -95,7 +95,6 @@ public interface AvroEndpointBuilderFactory {
*
* The option is a: <code>boolean</code> type.
*
- * Default: false
* Group: common
*/
default AvroEndpointConsumerBuilder reflectionProtocol(
@@ -110,7 +109,6 @@ public interface AvroEndpointBuilderFactory {
*
* The option will be converted to a <code>boolean</code> type.
*
- * Default: false
* Group: common
*/
default AvroEndpointConsumerBuilder reflectionProtocol(
@@ -124,7 +122,6 @@ public interface AvroEndpointBuilderFactory {
*
* The option is a: <code>boolean</code> type.
*
- * Default: false
* Group: common
*/
default AvroEndpointConsumerBuilder singleParameter(
@@ -138,7 +135,6 @@ public interface AvroEndpointBuilderFactory {
*
* The option will be converted to a <code>boolean</code> type.
*
- * Default: false
* Group: common
*/
default AvroEndpointConsumerBuilder singleParameter(
@@ -168,7 +164,6 @@ public interface AvroEndpointBuilderFactory {
*
* The option is a: <code>boolean</code> type.
*
- * Default: false
* Group: consumer
*/
default AvroEndpointConsumerBuilder bridgeErrorHandler(
@@ -187,7 +182,6 @@ public interface AvroEndpointBuilderFactory {
*
* The option will be converted to a <code>boolean</code> type.
*
- * Default: false
* Group: consumer
*/
default AvroEndpointConsumerBuilder bridgeErrorHandler(
@@ -269,7 +263,6 @@ public interface AvroEndpointBuilderFactory {
*
* The option is a: <code>boolean</code> type.
*
- * Default: false
* Group: advanced
*/
default AdvancedAvroEndpointConsumerBuilder basicPropertyBinding(
@@ -283,7 +276,6 @@ public interface AvroEndpointBuilderFactory {
*
* The option will be converted to a <code>boolean</code> type.
*
- * Default: false
* Group: advanced
*/
default AdvancedAvroEndpointConsumerBuilder basicPropertyBinding(
@@ -297,7 +289,6 @@ public interface AvroEndpointBuilderFactory {
*
* The option is a: <code>boolean</code> type.
*
- * Default: false
* Group: advanced
*/
default AdvancedAvroEndpointConsumerBuilder synchronous(
@@ -311,7 +302,6 @@ public interface AvroEndpointBuilderFactory {
*
* The option will be converted to a <code>boolean</code> type.
*
- * Default: false
* Group: advanced
*/
default AdvancedAvroEndpointConsumerBuilder synchronous(
@@ -384,7 +374,6 @@ public interface AvroEndpointBuilderFactory {
*
* The option is a: <code>boolean</code> type.
*
- * Default: false
* Group: common
*/
default AvroEndpointProducerBuilder reflectionProtocol(
@@ -399,7 +388,6 @@ public interface AvroEndpointBuilderFactory {
*
* The option will be converted to a <code>boolean</code> type.
*
- * Default: false
* Group: common
*/
default AvroEndpointProducerBuilder reflectionProtocol(
@@ -413,7 +401,6 @@ public interface AvroEndpointBuilderFactory {
*
* The option is a: <code>boolean</code> type.
*
- * Default: false
* Group: common
*/
default AvroEndpointProducerBuilder singleParameter(
@@ -427,7 +414,6 @@ public interface AvroEndpointBuilderFactory {
*
* The option will be converted to a <code>boolean</code> type.
*
- * Default: false
* Group: common
*/
default AvroEndpointProducerBuilder singleParameter(
@@ -459,7 +445,6 @@ public interface AvroEndpointBuilderFactory {
*
* The option is a: <code>boolean</code> type.
*
- * Default: false
* Group: producer
*/
default AvroEndpointProducerBuilder lazyStartProducer(
@@ -480,7 +465,6 @@ public interface AvroEndpointBuilderFactory {
*
* The option will be converted to a <code>boolean</code> type.
*
- * Default: false
* Group: producer
*/
default AvroEndpointProducerBuilder lazyStartProducer(
@@ -505,7 +489,6 @@ public interface AvroEndpointBuilderFactory {
*
* The option is a: <code>boolean</code> type.
*
- * Default: false
* Group: advanced
*/
default AdvancedAvroEndpointProducerBuilder basicPropertyBinding(
@@ -519,7 +502,6 @@ public interface AvroEndpointBuilderFactory {
*
* The option will be converted to a <code>boolean</code> type.
*
- * Default: false
* Group: advanced
*/
default AdvancedAvroEndpointProducerBuilder basicPropertyBinding(
@@ -533,7 +515,6 @@ public interface AvroEndpointBuilderFactory {
*
* The option is a: <code>boolean</code> type.
*
- * Default: false
* Group: advanced
*/
default AdvancedAvroEndpointProducerBuilder synchronous(
@@ -547,7 +528,6 @@ public interface AvroEndpointBuilderFactory {
*
* The option will be converted to a <code>boolean</code> type.
*
- * Default: false
* Group: advanced
*/
default AdvancedAvroEndpointProducerBuilder synchronous(
@@ -618,7 +598,6 @@ public interface AvroEndpointBuilderFactory {
*
* The option is a: <code>boolean</code> type.
*
- * Default: false
* Group: common
*/
default AvroEndpointBuilder reflectionProtocol(
@@ -633,7 +612,6 @@ public interface AvroEndpointBuilderFactory {
*
* The option will be converted to a <code>boolean</code> type.
*
- * Default: false
* Group: common
*/
default AvroEndpointBuilder reflectionProtocol(String reflectionProtocol) {
@@ -646,7 +624,6 @@ public interface AvroEndpointBuilderFactory {
*
* The option is a: <code>boolean</code> type.
*
- * Default: false
* Group: common
*/
default AvroEndpointBuilder singleParameter(boolean singleParameter) {
@@ -659,7 +636,6 @@ public interface AvroEndpointBuilderFactory {
*
* The option will be converted to a <code>boolean</code> type.
*
- * Default: false
* Group: common
*/
default AvroEndpointBuilder singleParameter(String singleParameter) {
@@ -694,7 +670,6 @@ public interface AvroEndpointBuilderFactory {
*
* The option is a: <code>boolean</code> type.
*
- * Default: false
* Group: advanced
*/
default AdvancedAvroEndpointBuilder basicPropertyBinding(
@@ -708,7 +683,6 @@ public interface AvroEndpointBuilderFactory {
*
* The option will be converted to a <code>boolean</code> type.
*
- * Default: false
* Group: advanced
*/
default AdvancedAvroEndpointBuilder basicPropertyBinding(
@@ -722,7 +696,6 @@ public interface AvroEndpointBuilderFactory {
*
* The option is a: <code>boolean</code> type.
*
- * Default: false
* Group: advanced
*/
default AdvancedAvroEndpointBuilder synchronous(boolean synchronous) {
@@ -735,7 +708,6 @@ public interface AvroEndpointBuilderFactory {
*
* The option will be converted to a <code>boolean</code> type.
*
- * Default: false
* Group: advanced
*/
default AdvancedAvroEndpointBuilder synchronous(String synchronous) {