This is an automated email from the ASF dual-hosted git repository. orpiske pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel.git
commit e99f805334cfd99906923a6a254e211299692189 Author: Otavio Rodolfo Piske <[email protected]> AuthorDate: Wed Jan 4 17:56:52 2023 +0100 (chores) camel-azure-datalake: avoid risky unboxing --- .../azure/storage/datalake/operations/DataLakeFileOperations.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/camel-azure/camel-azure-storage-datalake/src/main/java/org/apache/camel/component/azure/storage/datalake/operations/DataLakeFileOperations.java b/components/camel-azure/camel-azure-storage-datalake/src/main/java/org/apache/camel/component/azure/storage/datalake/operations/DataLakeFileOperations.java index d34b036cc2e..0556fb6e17f 100644 --- a/components/camel-azure/camel-azure-storage-datalake/src/main/java/org/apache/camel/component/azure/storage/datalake/operations/DataLakeFileOperations.java +++ b/components/camel-azure/camel-azure-storage-datalake/src/main/java/org/apache/camel/component/azure/storage/datalake/operations/DataLakeFileOperations.java @@ -90,7 +90,7 @@ public class DataLakeFileOperations { return new DataLakeOperationResponse(outputStream, dataLakeExchangeHeaders.toMap()); } finally { - if (configurationProxy.getConfiguration().getCloseStreamAfterRead()) { + if (Boolean.TRUE.equals(configurationProxy.getConfiguration().getCloseStreamAfterRead())) { outputStream.close(); } }
