From commits-return-76917-archive-asf-public=cust-asf.ponee.io@camel.apache.org Thu Aug 29 08:29:49 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id EBA71180608 for ; Thu, 29 Aug 2019 10:29:48 +0200 (CEST) Received: (qmail 98776 invoked by uid 500); 29 Aug 2019 08:29:48 -0000 Mailing-List: contact commits-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list commits@camel.apache.org Received: (qmail 98762 invoked by uid 99); 29 Aug 2019 08:29:48 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Aug 2019 08:29:48 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id A43368600D; Thu, 29 Aug 2019 08:29:47 +0000 (UTC) Date: Thu, 29 Aug 2019 08:29:47 +0000 To: "commits@camel.apache.org" Subject: [camel] branch master updated: Fixed CS for camel-file-watch MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Message-ID: <156706738714.21521.14957208072867378820@gitbox.apache.org> From: acosentino@apache.org X-Git-Host: gitbox.apache.org X-Git-Repo: camel X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Oldrev: a81def11de1b18e50bcb0e6a3bc764427109cb5f X-Git-Newrev: 02b7c509661d4772247432ac9020a123b3848306 X-Git-Rev: 02b7c509661d4772247432ac9020a123b3848306 X-Git-NotificationType: ref_changed_plus_diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated 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 The following commit(s) were added to refs/heads/master by this push: new 02b7c50 Fixed CS for camel-file-watch 02b7c50 is described below commit 02b7c509661d4772247432ac9020a123b3848306 Author: Andrea Cosentino AuthorDate: Thu Aug 29 10:29:25 2019 +0200 Fixed CS for camel-file-watch --- .../java/org/apache/camel/component/file/watch/FileWatchConsumer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/camel-file-watch/src/main/java/org/apache/camel/component/file/watch/FileWatchConsumer.java b/components/camel-file-watch/src/main/java/org/apache/camel/component/file/watch/FileWatchConsumer.java index 8b79d4b..8142c15 100644 --- a/components/camel-file-watch/src/main/java/org/apache/camel/component/file/watch/FileWatchConsumer.java +++ b/components/camel-file-watch/src/main/java/org/apache/camel/component/file/watch/FileWatchConsumer.java @@ -160,11 +160,11 @@ public class FileWatchConsumer extends DefaultConsumer { } private boolean matchFilters(FileEvent fileEvent) { - if (ObjectHelper.isNotEmpty(getEndpoint().getEvents())) { + if (ObjectHelper.isNotEmpty(getEndpoint().getEvents())) { if (!getEndpoint().getEvents().contains(fileEvent.getEventType())) { return false; } - } + } if (!getEndpoint().isRecursive()) { // On some platforms (eg macOS) is WatchService always recursive,