You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by or...@apache.org on 2023/05/16 14:38:27 UTC

[camel] 03/06: (chores) camel-core-support: use final where possible

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 1e0b16501562c1279929651c1ca5b8cfc299b05e
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Tue May 16 15:33:47 2023 +0200

    (chores) camel-core-support: use final where possible
---
 .../java/org/apache/camel/converter/stream/FileInputStreamCache.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/camel-support/src/main/java/org/apache/camel/converter/stream/FileInputStreamCache.java b/core/camel-support/src/main/java/org/apache/camel/converter/stream/FileInputStreamCache.java
index 5b80d5e2292..fe83ac22fd5 100644
--- a/core/camel-support/src/main/java/org/apache/camel/converter/stream/FileInputStreamCache.java
+++ b/core/camel-support/src/main/java/org/apache/camel/converter/stream/FileInputStreamCache.java
@@ -205,7 +205,7 @@ public final class FileInputStreamCache extends InputStream implements StreamCac
          * Indicator whether the file input stream caches are closed on completion of the exchanges.
          */
         private final boolean closedOnCompletion;
-        private AtomicInteger exchangeCounter = new AtomicInteger();
+        private final AtomicInteger exchangeCounter = new AtomicInteger();
         private File tempFile;
         private OutputStream outputStream; // file output stream
         private CipherPair ciphers;