This is an automated email from the ASF dual-hosted git repository. davsclaus 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 982d049 CAMEL-12730: Fix FindBugs warnings: Suspicious reference comparison (#2472) 982d049 is described below commit 982d0492ab8e1c116a3f3281f6042cd9c4d8cd41 Author: Hiroaki Yoshida <hyosh...@us.fujitsu.com> AuthorDate: Tue Aug 14 23:43:37 2018 -0700 CAMEL-12730: Fix FindBugs warnings: Suspicious reference comparison (#2472) --- camel-core/src/main/java/org/apache/camel/processor/Throttler.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/camel-core/src/main/java/org/apache/camel/processor/Throttler.java b/camel-core/src/main/java/org/apache/camel/processor/Throttler.java index 963330f..4191c06 100644 --- a/camel-core/src/main/java/org/apache/camel/processor/Throttler.java +++ b/camel-core/src/main/java/org/apache/camel/processor/Throttler.java @@ -309,7 +309,7 @@ public class Throttler extends DelegateAsyncProcessor implements Traceable, IdAw } if (newThrottle != null) { - if (newThrottle != throttleRate) { + if (!newThrottle.equals(throttleRate)) { // get the queue from the cache // decrease if (throttleRate > newThrottle) { @@ -357,7 +357,7 @@ public class Throttler extends DelegateAsyncProcessor implements Traceable, IdAw } if (newThrottle != null) { - if (newThrottle != throttleRatesMap.get(key)) { + if (!newThrottle.equals(throttleRatesMap.get(key))) { // get the queue from the cache // decrease if (throttleRatesMap.get(key) > newThrottle) {