camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From acosent...@apache.org
Subject [camel] branch master updated: Fixed CS for Camel-RSS
Date Fri, 07 Jun 2019 09:09:53 GMT
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 2fb4b73  Fixed CS for Camel-RSS
2fb4b73 is described below

commit 2fb4b73d5cab6a40d4cf7da935d94016ddab07ab
Author: Andrea Cosentino <ancosen@gmail.com>
AuthorDate: Fri Jun 7 11:08:23 2019 +0200

    Fixed CS for Camel-RSS
---
 .../org/apache/camel/component/rss/AggregateRssFeedStrategy.java    | 6 +++---
 .../src/main/java/org/apache/camel/component/rss/RssEndpoint.java   | 6 +++---
 .../org/apache/camel/component/rss/RssEntryPollingConsumer.java     | 4 ++--
 .../src/main/java/org/apache/camel/component/rss/RssUtils.java      | 4 ++--
 .../main/java/org/apache/camel/component/rss/UpdatedDateFilter.java | 4 ++--
 .../main/java/org/apache/camel/dataformat/rss/RssDataFormat.java    | 4 ++--
 .../camel/component/rss/RssEntryPollingConsumerWithFilterTest.java  | 6 +++---
 .../test/java/org/apache/camel/component/rss/RssEntrySortTest.java  | 6 +++---
 .../src/test/java/org/apache/camel/component/rss/RssFilterTest.java | 6 +++---
 .../java/org/apache/camel/component/rss/RssPollingConsumerTest.java | 4 ++--
 .../java/org/apache/camel/component/rss/UpdatedDateFilterTest.java  | 6 +++---
 .../test/java/org/apache/camel/dataformat/rss/RssConverterTest.java | 4 ++--
 .../java/org/apache/camel/dataformat/rss/RssDataFormatTest.java     | 4 ++--
 13 files changed, 32 insertions(+), 32 deletions(-)

diff --git a/components/camel-rss/src/main/java/org/apache/camel/component/rss/AggregateRssFeedStrategy.java
b/components/camel-rss/src/main/java/org/apache/camel/component/rss/AggregateRssFeedStrategy.java
index d164212..fb9863b 100644
--- a/components/camel-rss/src/main/java/org/apache/camel/component/rss/AggregateRssFeedStrategy.java
+++ b/components/camel-rss/src/main/java/org/apache/camel/component/rss/AggregateRssFeedStrategy.java
@@ -19,15 +19,15 @@ package org.apache.camel.component.rss;
 import java.util.ArrayList;
 import java.util.List;
 
+import com.rometools.rome.feed.synd.SyndEntry;
+import com.rometools.rome.feed.synd.SyndFeed;
+
 import org.apache.camel.AggregationStrategy;
 import org.apache.camel.Exchange;
 import org.apache.camel.util.CastUtils;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-import com.rometools.rome.feed.synd.SyndEntry;
-import com.rometools.rome.feed.synd.SyndFeed;
-
 public class AggregateRssFeedStrategy implements AggregationStrategy {
     protected final Logger log = LoggerFactory.getLogger(AggregateRssFeedStrategy.class);
 
diff --git a/components/camel-rss/src/main/java/org/apache/camel/component/rss/RssEndpoint.java
b/components/camel-rss/src/main/java/org/apache/camel/component/rss/RssEndpoint.java
index 0599479..d3760dc 100644
--- a/components/camel-rss/src/main/java/org/apache/camel/component/rss/RssEndpoint.java
+++ b/components/camel-rss/src/main/java/org/apache/camel/component/rss/RssEndpoint.java
@@ -19,6 +19,9 @@ package org.apache.camel.component.rss;
 import java.util.Arrays;
 import java.util.Date;
 
+import com.rometools.rome.feed.synd.SyndEntry;
+import com.rometools.rome.feed.synd.SyndFeed;
+
 import org.apache.camel.Exchange;
 import org.apache.camel.Processor;
 import org.apache.camel.Producer;
@@ -29,9 +32,6 @@ import org.apache.camel.spi.UriEndpoint;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-import com.rometools.rome.feed.synd.SyndEntry;
-import com.rometools.rome.feed.synd.SyndFeed;
-
 /**
  * The rss component is used for consuming RSS feeds.
  */
diff --git a/components/camel-rss/src/main/java/org/apache/camel/component/rss/RssEntryPollingConsumer.java
b/components/camel-rss/src/main/java/org/apache/camel/component/rss/RssEntryPollingConsumer.java
index abb0d3d..26f6943 100644
--- a/components/camel-rss/src/main/java/org/apache/camel/component/rss/RssEntryPollingConsumer.java
+++ b/components/camel-rss/src/main/java/org/apache/camel/component/rss/RssEntryPollingConsumer.java
@@ -19,13 +19,13 @@ package org.apache.camel.component.rss;
 import java.util.Collections;
 import java.util.Date;
 
+import com.rometools.rome.feed.synd.SyndFeed;
+
 import org.apache.camel.Processor;
 import org.apache.camel.component.feed.EntryFilter;
 import org.apache.camel.component.feed.FeedEntryPollingConsumer;
 import org.apache.camel.util.ObjectHelper;
 
-import com.rometools.rome.feed.synd.SyndFeed;
-
 /**
  * Consumer to poll RSS feeds and return each entry from the feed step by step.
  */
diff --git a/components/camel-rss/src/main/java/org/apache/camel/component/rss/RssUtils.java
b/components/camel-rss/src/main/java/org/apache/camel/component/rss/RssUtils.java
index 25cd6a6..98a471d 100644
--- a/components/camel-rss/src/main/java/org/apache/camel/component/rss/RssUtils.java
+++ b/components/camel-rss/src/main/java/org/apache/camel/component/rss/RssUtils.java
@@ -20,12 +20,12 @@ import java.io.InputStream;
 import java.net.HttpURLConnection;
 import java.net.URL;
 
-import org.apache.commons.codec.binary.Base64;
-
 import com.rometools.rome.feed.synd.SyndFeed;
 import com.rometools.rome.io.SyndFeedInput;
 import com.rometools.rome.io.XmlReader;
 
+import org.apache.commons.codec.binary.Base64;
+
 public final class RssUtils {
 
     private RssUtils() {
diff --git a/components/camel-rss/src/main/java/org/apache/camel/component/rss/UpdatedDateFilter.java
b/components/camel-rss/src/main/java/org/apache/camel/component/rss/UpdatedDateFilter.java
index 78e233c..b7274e0 100644
--- a/components/camel-rss/src/main/java/org/apache/camel/component/rss/UpdatedDateFilter.java
+++ b/components/camel-rss/src/main/java/org/apache/camel/component/rss/UpdatedDateFilter.java
@@ -19,14 +19,14 @@ package org.apache.camel.component.rss;
 import java.util.Date;
 import java.util.Map;
 
+import com.rometools.rome.feed.synd.SyndEntry;
+
 import org.apache.camel.component.feed.EntryFilter;
 import org.apache.camel.component.feed.FeedEndpoint;
 import org.apache.camel.support.LRUCacheFactory;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-import com.rometools.rome.feed.synd.SyndEntry;
-
 /**
  * Filters out all entries which occur before the last time of the entry we saw
  * (assuming entries arrive sorted in order).
diff --git a/components/camel-rss/src/main/java/org/apache/camel/dataformat/rss/RssDataFormat.java
b/components/camel-rss/src/main/java/org/apache/camel/dataformat/rss/RssDataFormat.java
index c4238cf..2c0a2a7 100644
--- a/components/camel-rss/src/main/java/org/apache/camel/dataformat/rss/RssDataFormat.java
+++ b/components/camel-rss/src/main/java/org/apache/camel/dataformat/rss/RssDataFormat.java
@@ -19,6 +19,8 @@ package org.apache.camel.dataformat.rss;
 import java.io.InputStream;
 import java.io.OutputStream;
 
+import com.rometools.rome.feed.synd.SyndFeed;
+
 import org.apache.camel.Exchange;
 import org.apache.camel.spi.DataFormat;
 import org.apache.camel.spi.DataFormatName;
@@ -26,8 +28,6 @@ import org.apache.camel.spi.annotations.Dataformat;
 import org.apache.camel.support.ExchangeHelper;
 import org.apache.camel.support.service.ServiceSupport;
 
-import com.rometools.rome.feed.synd.SyndFeed;
-
 /**
  * RSS DataFormat
  * <p/>
diff --git a/components/camel-rss/src/test/java/org/apache/camel/component/rss/RssEntryPollingConsumerWithFilterTest.java
b/components/camel-rss/src/test/java/org/apache/camel/component/rss/RssEntryPollingConsumerWithFilterTest.java
index f7a80bf..964f91a 100644
--- a/components/camel-rss/src/test/java/org/apache/camel/component/rss/RssEntryPollingConsumerWithFilterTest.java
+++ b/components/camel-rss/src/test/java/org/apache/camel/component/rss/RssEntryPollingConsumerWithFilterTest.java
@@ -20,6 +20,9 @@ import java.util.Calendar;
 import java.util.Date;
 import java.util.TimeZone;
 
+import com.rometools.rome.feed.synd.SyndEntry;
+import com.rometools.rome.feed.synd.SyndFeed;
+
 import org.apache.camel.Exchange;
 import org.apache.camel.builder.RouteBuilder;
 import org.apache.camel.component.mock.MockEndpoint;
@@ -27,9 +30,6 @@ import org.apache.camel.spi.Registry;
 import org.apache.camel.test.junit4.CamelTestSupport;
 import org.junit.Test;
 
-import com.rometools.rome.feed.synd.SyndEntry;
-import com.rometools.rome.feed.synd.SyndFeed;
-
 public class RssEntryPollingConsumerWithFilterTest extends CamelTestSupport {
 
     @Test
diff --git a/components/camel-rss/src/test/java/org/apache/camel/component/rss/RssEntrySortTest.java
b/components/camel-rss/src/test/java/org/apache/camel/component/rss/RssEntrySortTest.java
index 74921f1..f3a66d7 100644
--- a/components/camel-rss/src/test/java/org/apache/camel/component/rss/RssEntrySortTest.java
+++ b/components/camel-rss/src/test/java/org/apache/camel/component/rss/RssEntrySortTest.java
@@ -18,6 +18,9 @@ package org.apache.camel.component.rss;
 
 import java.util.Date;
 
+import com.rometools.rome.feed.synd.SyndEntry;
+import com.rometools.rome.feed.synd.SyndFeed;
+
 import org.apache.camel.Body;
 import org.apache.camel.builder.ExpressionBuilder;
 import org.apache.camel.builder.RouteBuilder;
@@ -26,9 +29,6 @@ import org.apache.camel.spi.Registry;
 import org.apache.camel.test.junit4.CamelTestSupport;
 import org.junit.Test;
 
-import com.rometools.rome.feed.synd.SyndEntry;
-import com.rometools.rome.feed.synd.SyndFeed;
-
 public class RssEntrySortTest extends CamelTestSupport {
 
     @Test
diff --git a/components/camel-rss/src/test/java/org/apache/camel/component/rss/RssFilterTest.java
b/components/camel-rss/src/test/java/org/apache/camel/component/rss/RssFilterTest.java
index daa0a36..dc9180c 100644
--- a/components/camel-rss/src/test/java/org/apache/camel/component/rss/RssFilterTest.java
+++ b/components/camel-rss/src/test/java/org/apache/camel/component/rss/RssFilterTest.java
@@ -16,6 +16,9 @@
  */
 package org.apache.camel.component.rss;
 
+import com.rometools.rome.feed.synd.SyndEntry;
+import com.rometools.rome.feed.synd.SyndFeed;
+
 import org.apache.camel.Body;
 import org.apache.camel.builder.RouteBuilder;
 import org.apache.camel.component.mock.MockEndpoint;
@@ -23,9 +26,6 @@ import org.apache.camel.spi.Registry;
 import org.apache.camel.test.junit4.CamelTestSupport;
 import org.junit.Test;
 
-import com.rometools.rome.feed.synd.SyndEntry;
-import com.rometools.rome.feed.synd.SyndFeed;
-
 public class RssFilterTest extends CamelTestSupport {
 
     @Test
diff --git a/components/camel-rss/src/test/java/org/apache/camel/component/rss/RssPollingConsumerTest.java
b/components/camel-rss/src/test/java/org/apache/camel/component/rss/RssPollingConsumerTest.java
index 9025853..e678b00 100644
--- a/components/camel-rss/src/test/java/org/apache/camel/component/rss/RssPollingConsumerTest.java
+++ b/components/camel-rss/src/test/java/org/apache/camel/component/rss/RssPollingConsumerTest.java
@@ -16,6 +16,8 @@
  */
 package org.apache.camel.component.rss;
 
+import com.rometools.rome.feed.synd.SyndFeed;
+
 import org.apache.camel.Exchange;
 import org.apache.camel.Message;
 import org.apache.camel.builder.RouteBuilder;
@@ -23,8 +25,6 @@ import org.apache.camel.component.mock.MockEndpoint;
 import org.apache.camel.test.junit4.CamelTestSupport;
 import org.junit.Test;
 
-import com.rometools.rome.feed.synd.SyndFeed;
-
 public class RssPollingConsumerTest extends CamelTestSupport {
 
     @Test
diff --git a/components/camel-rss/src/test/java/org/apache/camel/component/rss/UpdatedDateFilterTest.java
b/components/camel-rss/src/test/java/org/apache/camel/component/rss/UpdatedDateFilterTest.java
index b19535c..7d057e2 100644
--- a/components/camel-rss/src/test/java/org/apache/camel/component/rss/UpdatedDateFilterTest.java
+++ b/components/camel-rss/src/test/java/org/apache/camel/component/rss/UpdatedDateFilterTest.java
@@ -18,13 +18,13 @@ package org.apache.camel.component.rss;
 
 import java.util.Date;
 
-import org.junit.Before;
-import org.junit.Test;
-
 import com.rometools.rome.feed.synd.SyndEntry;
 import com.rometools.rome.feed.synd.SyndEntryImpl;
 import com.rometools.rome.feed.synd.SyndFeedImpl;
 
+import org.junit.Before;
+import org.junit.Test;
+
 import static org.junit.Assert.assertFalse;
 import static org.junit.Assert.assertTrue;
 
diff --git a/components/camel-rss/src/test/java/org/apache/camel/dataformat/rss/RssConverterTest.java
b/components/camel-rss/src/test/java/org/apache/camel/dataformat/rss/RssConverterTest.java
index 84057c0..520bef1 100644
--- a/components/camel-rss/src/test/java/org/apache/camel/dataformat/rss/RssConverterTest.java
+++ b/components/camel-rss/src/test/java/org/apache/camel/dataformat/rss/RssConverterTest.java
@@ -16,10 +16,10 @@
  */
 package org.apache.camel.dataformat.rss;
 
-import org.apache.camel.builder.RouteBuilder;
-
 import com.rometools.rome.feed.synd.SyndFeed;
 
+import org.apache.camel.builder.RouteBuilder;
+
 public class RssConverterTest extends RssDataFormatTest {
 
     protected RouteBuilder createRouteBuilder() throws Exception {
diff --git a/components/camel-rss/src/test/java/org/apache/camel/dataformat/rss/RssDataFormatTest.java
b/components/camel-rss/src/test/java/org/apache/camel/dataformat/rss/RssDataFormatTest.java
index 0df6a8b..90dfc55 100644
--- a/components/camel-rss/src/test/java/org/apache/camel/dataformat/rss/RssDataFormatTest.java
+++ b/components/camel-rss/src/test/java/org/apache/camel/dataformat/rss/RssDataFormatTest.java
@@ -16,6 +16,8 @@
  */
 package org.apache.camel.dataformat.rss;
 
+import com.rometools.rome.feed.synd.SyndFeed;
+
 import org.apache.camel.builder.RouteBuilder;
 import org.apache.camel.component.mock.MockEndpoint;
 import org.apache.camel.component.rss.RssUtils;
@@ -23,8 +25,6 @@ import org.apache.camel.test.junit4.CamelTestSupport;
 import org.junit.Before;
 import org.junit.Test;
 
-import com.rometools.rome.feed.synd.SyndFeed;
-
 public class RssDataFormatTest extends CamelTestSupport {
     private String feedXml;
     private SyndFeed feed;


Mime
View raw message