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:24:39 UTC
[camel] branch main updated: CAMEL-16795: Fixed CS
This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new 73f4f94 CAMEL-16795: Fixed CS
73f4f94 is described below
commit 73f4f944466c62871d4a888e32ae4d626a0be0fb
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 {