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/07/09 07:26:34 UTC

[camel] 02/02: CAMEL-16795: Fixed CS

This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch camel-3.11.x
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 08d654ddfdb3f9a3201cf1a7d3dd7c2a806df85a
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Fri Jul 9 09:24:02 2021 +0200

    CAMEL-16795: Fixed CS
---
 .../component/file/strategy/FileChangedExclusiveReadLockStrategy.java   | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/components/camel-file/src/main/java/org/apache/camel/component/file/strategy/FileChangedExclusiveReadLockStrategy.java b/components/camel-file/src/main/java/org/apache/camel/component/file/strategy/FileChangedExclusiveReadLockStrategy.java
index b04d33a..c3d01f0 100644
--- a/components/camel-file/src/main/java/org/apache/camel/component/file/strategy/FileChangedExclusiveReadLockStrategy.java
+++ b/components/camel-file/src/main/java/org/apache/camel/component/file/strategy/FileChangedExclusiveReadLockStrategy.java
@@ -87,8 +87,10 @@ public class FileChangedExclusiveReadLockStrategy extends MarkerFileExclusiveRea
             LOG.trace("Previous length: {}, new length: {}", length, newLength);
             LOG.trace("New older than threshold: {}", newOlderThan);
 
+            // CHECKSTYLE:OFF
             if (newLength >= minLength && ((minAge == 0 && newLastModified == lastModified && newLength == length)
                     || (minAge != 0 && newLastModified < newOlderThan))) {
+            // CHECKSTYLE:ON
                 LOG.trace("Read lock acquired.");
                 exclusive = true;
             } else {