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 2022/06/20 12:19:16 UTC

[camel] 03/09: (chores) camel-file: removed unused parameters

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 cf0d203447e27432f3187d58ce5b50d00c8ca7da
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Mon Jun 20 10:52:23 2022 +0200

    (chores) camel-file: removed unused parameters
---
 .../file/strategy/FileLockExclusiveReadLockStrategy.java         | 4 ++--
 .../file/strategy/MarkerFileExclusiveReadLockStrategy.java       | 9 ++++-----
 2 files changed, 6 insertions(+), 7 deletions(-)

diff --git a/components/camel-file/src/main/java/org/apache/camel/component/file/strategy/FileLockExclusiveReadLockStrategy.java b/components/camel-file/src/main/java/org/apache/camel/component/file/strategy/FileLockExclusiveReadLockStrategy.java
index 91560993aa8..f0bf652dd0f 100644
--- a/components/camel-file/src/main/java/org/apache/camel/component/file/strategy/FileLockExclusiveReadLockStrategy.java
+++ b/components/camel-file/src/main/java/org/apache/camel/component/file/strategy/FileLockExclusiveReadLockStrategy.java
@@ -153,10 +153,10 @@ public class FileLockExclusiveReadLockStrategy extends MarkerFileExclusiveReadLo
     }
 
     @Override
-    protected void doReleaseExclusiveReadLock(GenericFileOperations<File> operations, GenericFile<File> file, Exchange exchange)
+    protected void doReleaseExclusiveReadLock(GenericFile<File> file, Exchange exchange)
             throws Exception {
         // must call super
-        super.doReleaseExclusiveReadLock(operations, file, exchange);
+        super.doReleaseExclusiveReadLock(file, exchange);
 
         FileLock lock = exchange.getProperty(asExclusiveReadLockKey(file, Exchange.FILE_LOCK_EXCLUSIVE_LOCK), FileLock.class);
         RandomAccessFile rac
diff --git a/components/camel-file/src/main/java/org/apache/camel/component/file/strategy/MarkerFileExclusiveReadLockStrategy.java b/components/camel-file/src/main/java/org/apache/camel/component/file/strategy/MarkerFileExclusiveReadLockStrategy.java
index 39e0dd390c0..4e3e638ffab 100644
--- a/components/camel-file/src/main/java/org/apache/camel/component/file/strategy/MarkerFileExclusiveReadLockStrategy.java
+++ b/components/camel-file/src/main/java/org/apache/camel/component/file/strategy/MarkerFileExclusiveReadLockStrategy.java
@@ -94,25 +94,24 @@ public class MarkerFileExclusiveReadLockStrategy implements GenericFileExclusive
     public void releaseExclusiveReadLockOnAbort(
             GenericFileOperations<File> operations, GenericFile<File> file, Exchange exchange)
             throws Exception {
-        doReleaseExclusiveReadLock(operations, file, exchange);
+        doReleaseExclusiveReadLock(file, exchange);
     }
 
     @Override
     public void releaseExclusiveReadLockOnRollback(
             GenericFileOperations<File> operations, GenericFile<File> file, Exchange exchange)
             throws Exception {
-        doReleaseExclusiveReadLock(operations, file, exchange);
+        doReleaseExclusiveReadLock(file, exchange);
     }
 
     @Override
     public void releaseExclusiveReadLockOnCommit(
             GenericFileOperations<File> operations, GenericFile<File> file, Exchange exchange)
             throws Exception {
-        doReleaseExclusiveReadLock(operations, file, exchange);
+        doReleaseExclusiveReadLock(file, exchange);
     }
 
-    protected void doReleaseExclusiveReadLock(
-            GenericFileOperations<File> operations, GenericFile<File> file, Exchange exchange)
+    protected void doReleaseExclusiveReadLock(GenericFile<File> file, Exchange exchange)
             throws Exception {
         if (!markerFile) {
             // if not using marker file then nothing to release