camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aldettin...@apache.org
Subject [camel] branch master updated: Checkstyle fixes
Date Tue, 05 Dec 2017 20:52:29 GMT
This is an automated email from the ASF dual-hosted git repository.

aldettinger 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 bbc44c4  Checkstyle fixes
bbc44c4 is described below

commit bbc44c4547fdf4f5236ed6ffd86759aa74e8bac5
Author: aldettinger <aldettinger@gmail.com>
AuthorDate: Tue Dec 5 21:42:50 2017 +0100

    Checkstyle fixes
---
 .../camel/component/kafka/KafkaConfiguration.java  | 27 +++++++++++-----------
 .../camel/component/pdf/Standard14Fonts.java       |  8 ++++---
 .../examples/trading/TradeExecutorExample.java     |  5 ++--
 3 files changed, 21 insertions(+), 19 deletions(-)

diff --git a/components/camel-kafka/src/main/java/org/apache/camel/component/kafka/KafkaConfiguration.java
b/components/camel-kafka/src/main/java/org/apache/camel/component/kafka/KafkaConfiguration.java
index 837ca9e..9b5ba6b 100644
--- a/components/camel-kafka/src/main/java/org/apache/camel/component/kafka/KafkaConfiguration.java
+++ b/components/camel-kafka/src/main/java/org/apache/camel/component/kafka/KafkaConfiguration.java
@@ -1582,17 +1582,18 @@ public class KafkaConfiguration implements Cloneable {
         this.enableIdempotence = enableIdempotence;
     }
 
-	public Integer getReconnectBackoffMaxMs() {
-		return reconnectBackoffMaxMs;
-	}
-
-	/**
-	 * 
-     * The maximum amount of time in milliseconds to wait when reconnecting to a broker that
has repeatedly failed to connect. 
-     * If provided, the backoff per host will increase exponentially for each consecutive
connection failure, up to this maximum. 
-     * After calculating the backoff increase, 20% random jitter is added to avoid connection
storms.
-	 */
-	public void setReconnectBackoffMaxMs(Integer reconnectBackoffMaxMs) {
-		this.reconnectBackoffMaxMs = reconnectBackoffMaxMs;
-	}
+    public Integer getReconnectBackoffMaxMs() {
+        return reconnectBackoffMaxMs;
+    }
+
+    /**
+     * The maximum amount of time in milliseconds to wait when reconnecting to a
+     * broker that has repeatedly failed to connect. If provided, the backoff
+     * per host will increase exponentially for each consecutive connection
+     * failure, up to this maximum. After calculating the backoff increase, 20%
+     * random jitter is added to avoid connection storms.
+     */
+    public void setReconnectBackoffMaxMs(Integer reconnectBackoffMaxMs) {
+        this.reconnectBackoffMaxMs = reconnectBackoffMaxMs;
+    }
 }
diff --git a/components/camel-pdf/src/main/java/org/apache/camel/component/pdf/Standard14Fonts.java
b/components/camel-pdf/src/main/java/org/apache/camel/component/pdf/Standard14Fonts.java
index 06c2f37..bc1cf7d 100644
--- a/components/camel-pdf/src/main/java/org/apache/camel/component/pdf/Standard14Fonts.java
+++ b/components/camel-pdf/src/main/java/org/apache/camel/component/pdf/Standard14Fonts.java
@@ -26,10 +26,9 @@ import org.apache.pdfbox.pdmodel.font.PDType1Font;
  *
  * @author <a href="https://github.com/ppalaga">Peter Palaga</a>
  */
-public class Standard14Fonts {
+public final class Standard14Fonts {
     private static final Map<String, PDType1Font> FONTS_BY_NAME = new HashMap<>();
-    static
-    {
+    static {
         FONTS_BY_NAME.put(PDType1Font.TIMES_ROMAN.getBaseFont(), PDType1Font.TIMES_ROMAN);
         FONTS_BY_NAME.put(PDType1Font.TIMES_BOLD.getBaseFont(), PDType1Font.TIMES_BOLD);
         FONTS_BY_NAME.put(PDType1Font.TIMES_ITALIC.getBaseFont(), PDType1Font.TIMES_ITALIC);
@@ -46,6 +45,9 @@ public class Standard14Fonts {
         FONTS_BY_NAME.put(PDType1Font.ZAPF_DINGBATS.getBaseFont(), PDType1Font.ZAPF_DINGBATS);
     }
 
+    private Standard14Fonts() {
+    }
+
     /**
      * Get one of the 14 standard fonts by base font name.
      *
diff --git a/components/camel-quickfix/src/test/java/org/apache/camel/component/quickfixj/examples/trading/TradeExecutorExample.java
b/components/camel-quickfix/src/test/java/org/apache/camel/component/quickfixj/examples/trading/TradeExecutorExample.java
index fa4fbe5..4fa87ed 100644
--- a/components/camel-quickfix/src/test/java/org/apache/camel/component/quickfixj/examples/trading/TradeExecutorExample.java
+++ b/components/camel-quickfix/src/test/java/org/apache/camel/component/quickfixj/examples/trading/TradeExecutorExample.java
@@ -16,10 +16,9 @@
  */
 package org.apache.camel.component.quickfixj.examples.trading;
 
-import java.util.Date;
+import java.time.LocalDateTime;
 import java.util.concurrent.CountDownLatch;
 import java.util.concurrent.TimeUnit;
-import java.time.LocalDateTime;
 
 import org.apache.camel.Endpoint;
 import org.apache.camel.Exchange;
@@ -53,7 +52,7 @@ public class TradeExecutorExample {
         new TradeExecutorExample().sendMessage();
     }
     
-    public void sendMessage() throws Exception {        
+    public void sendMessage() throws Exception {
         DefaultCamelContext context = new DefaultCamelContext();
         context.addComponent("trade-executor", new TradeExecutorComponent());
         

-- 
To stop receiving notification emails like this one, please contact
['"commits@camel.apache.org" <commits@camel.apache.org>'].

Mime
View raw message