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 2019/01/28 10:15:44 UTC
[camel] branch camel-2.21.x updated: CAMEL-13132 - Camel-Azure:
uploadBlobBlocks and commitBlobBlockList operations does not work with List
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch camel-2.21.x
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/camel-2.21.x by this push:
new eaba435 CAMEL-13132 - Camel-Azure: uploadBlobBlocks and commitBlobBlockList operations does not work with List
eaba435 is described below
commit eaba4351d04c9ed425a44559b8feebcfb992c3ad
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Mon Jan 28 11:14:27 2019 +0100
CAMEL-13132 - Camel-Azure: uploadBlobBlocks and commitBlobBlockList operations does not work with List
---
.../org/apache/camel/component/azure/blob/BlobServiceProducer.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/components/camel-azure/src/main/java/org/apache/camel/component/azure/blob/BlobServiceProducer.java b/components/camel-azure/src/main/java/org/apache/camel/component/azure/blob/BlobServiceProducer.java
index 6a93c7e..738e4b6 100644
--- a/components/camel-azure/src/main/java/org/apache/camel/component/azure/blob/BlobServiceProducer.java
+++ b/components/camel-azure/src/main/java/org/apache/camel/component/azure/blob/BlobServiceProducer.java
@@ -157,7 +157,7 @@ public class BlobServiceProducer extends DefaultProducer {
List<BlobBlock> blobBlocks = null;
if (object instanceof List) {
- blobBlocks = (List<BlobBlock>)blobBlocks;
+ blobBlocks = (List<BlobBlock>)object;
} else if (object instanceof BlobBlock) {
blobBlocks = Collections.singletonList((BlobBlock)object);
}
@@ -189,7 +189,7 @@ public class BlobServiceProducer extends DefaultProducer {
List<BlockEntry> blockEntries = null;
if (object instanceof List) {
- blockEntries = (List<BlockEntry>)blockEntries;
+ blockEntries = (List<BlockEntry>)object;
} else if (object instanceof BlockEntry) {
blockEntries = Collections.singletonList((BlockEntry)object);
}