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 2022/01/14 06:40:18 UTC

[camel] 02/02: CAMEL-17486: camel-core - ThrottlePermit compareTo cast to int causes issues. Thanks to Marc Boulanger for the patch and unit test.

This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch camel-3.14.x
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 7008ce8d850c89a68439771bcf59a9b3b52f9070
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Fri Jan 14 07:27:08 2022 +0100

    CAMEL-17486: camel-core - ThrottlePermit compareTo cast to int causes issues. Thanks to Marc Boulanger for the patch and unit test.
---
 .../java/org/apache/camel/processor/ThrottlerPermitTest.java     | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/core/camel-core/src/test/java/org/apache/camel/processor/ThrottlerPermitTest.java b/core/camel-core/src/test/java/org/apache/camel/processor/ThrottlerPermitTest.java
index cf5da58..74342e1 100644
--- a/core/camel-core/src/test/java/org/apache/camel/processor/ThrottlerPermitTest.java
+++ b/core/camel-core/src/test/java/org/apache/camel/processor/ThrottlerPermitTest.java
@@ -16,17 +16,16 @@
  */
 package org.apache.camel.processor;
 
-import org.junit.jupiter.api.Test;
-
 import java.util.concurrent.Delayed;
 import java.util.concurrent.TimeUnit;
 
+import org.junit.jupiter.api.Test;
+
 import static org.junit.jupiter.api.Assertions.assertEquals;
 
 /**
- * When a Throttler has not been used for longer than {@link java.lang.Integer#MAX_VALUE},
- * casting the result of the {@link ThrottlePermit} comparison to an int causes an overflow.
- * Using a value comparison prevents this issue.
+ * When a Throttler has not been used for longer than {@link java.lang.Integer#MAX_VALUE}, casting the result of the
+ * {@link ThrottlePermit} comparison to an int causes an overflow. Using a value comparison prevents this issue.
  */
 public class ThrottlerPermitTest {