You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2021/01/06 11:44:04 UTC
[camel] 02/07: polished code
This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git
commit a2896cf5a75e4d19eee93a0105689e90e8caf762
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Mon Jan 4 11:08:30 2021 +0100
polished code
---
.../org/apache/camel/component/jms/JmsProducer.java | 20 ++------------------
1 file changed, 2 insertions(+), 18 deletions(-)
diff --git a/components/camel-jms/src/main/java/org/apache/camel/component/jms/JmsProducer.java b/components/camel-jms/src/main/java/org/apache/camel/component/jms/JmsProducer.java
index 57d5c73..99acbc3 100644
--- a/components/camel-jms/src/main/java/org/apache/camel/component/jms/JmsProducer.java
+++ b/components/camel-jms/src/main/java/org/apache/camel/component/jms/JmsProducer.java
@@ -426,25 +426,9 @@ public class JmsProducer extends DefaultAsyncProducer {
// destination should be preferred
if (destination != null) {
- if (inOut) {
- if (template != null) {
- template.send(destination, messageCreator, callback);
- }
- } else {
- if (template != null) {
- template.send(destination, messageCreator, callback);
- }
- }
+ template.send(destination, messageCreator, callback);
} else if (destinationName != null) {
- if (inOut) {
- if (template != null) {
- template.send(destinationName, messageCreator, callback);
- }
- } else {
- if (template != null) {
- template.send(destinationName, messageCreator, callback);
- }
- }
+ template.send(destinationName, messageCreator, callback);
} else {
throw new IllegalArgumentException(
"Neither destination nor destinationName is specified on this endpoint: " + endpoint);