This is an automated email from the ASF dual-hosted git repository. acosentino pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel.git
commit fbd48594182e3694e1e9f2de5654eb778649c828 Author: Andrea Cosentino <anco...@gmail.com> AuthorDate: Fri Jan 29 17:03:24 2021 +0100 Camel-file-watch: Use FileHash because HashCode has been removed --- .../test/java/org/apache/camel/component/file/watch/TestHasher.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/camel-file-watch/src/test/java/org/apache/camel/component/file/watch/TestHasher.java b/components/camel-file-watch/src/test/java/org/apache/camel/component/file/watch/TestHasher.java index 50e5670..8acf0cb 100644 --- a/components/camel-file-watch/src/test/java/org/apache/camel/component/file/watch/TestHasher.java +++ b/components/camel-file-watch/src/test/java/org/apache/camel/component/file/watch/TestHasher.java @@ -19,18 +19,18 @@ package org.apache.camel.component.file.watch; import java.io.IOException; import java.nio.file.Path; +import io.methvin.watcher.hashing.FileHash; import io.methvin.watcher.hashing.FileHasher; -import io.methvin.watcher.hashing.HashCode; /** * For unit test only! */ public class TestHasher implements FileHasher { @Override - public HashCode hash(Path path) throws IOException { + public FileHash hash(Path path) throws IOException { // Always return constant // This should cause every event is triggered only once (hashcode remains the same), so we can test this. // Never use this in production code - return HashCode.fromLong(1L); + return FileHash.fromLong(1L); } }