camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From acosent...@apache.org
Subject [camel] 02/02: CAMEL-12784 - Fixed CS
Date Fri, 07 Sep 2018 11:45:24 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

commit 7d3cfc9b08a9bfb60122252e8e144602e0a4d843
Author: Andrea Cosentino <ancosen@gmail.com>
AuthorDate: Fri Sep 7 13:44:00 2018 +0200

    CAMEL-12784 - Fixed CS
---
 .../google/calendar/stream/GoogleCalendarStreamEndpoint.java   | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/components/camel-google-calendar/src/main/java/org/apache/camel/component/google/calendar/stream/GoogleCalendarStreamEndpoint.java
b/components/camel-google-calendar/src/main/java/org/apache/camel/component/google/calendar/stream/GoogleCalendarStreamEndpoint.java
index 1b60db5..85033fa 100644
--- a/components/camel-google-calendar/src/main/java/org/apache/camel/component/google/calendar/stream/GoogleCalendarStreamEndpoint.java
+++ b/components/camel-google-calendar/src/main/java/org/apache/camel/component/google/calendar/stream/GoogleCalendarStreamEndpoint.java
@@ -18,6 +18,10 @@ package org.apache.camel.component.google.calendar.stream;
 
 import java.io.UnsupportedEncodingException;
 
+import com.google.api.services.calendar.Calendar;
+import com.google.api.services.calendar.model.CalendarListEntry;
+import com.google.api.services.calendar.model.Event;
+
 import org.apache.camel.Consumer;
 import org.apache.camel.Exchange;
 import org.apache.camel.ExchangePattern;
@@ -32,10 +36,6 @@ import org.apache.camel.util.ObjectHelper;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-import com.google.api.services.calendar.Calendar;
-import com.google.api.services.calendar.model.CalendarListEntry;
-import com.google.api.services.calendar.model.Event;
-
 /**
  * The google-calendar component provides access to Google Calendar in a streaming mod.
  */
@@ -66,7 +66,7 @@ public class GoogleCalendarStreamEndpoint extends ScheduledPollEndpoint
{
     @Override
     public Consumer createConsumer(Processor processor) throws Exception {
         String calendarId = null;
-        if (getConfiguration().getCalendarSummaryName() != "primary") {
+        if (getConfiguration().getCalendarSummaryName().equals("primary")) {
             com.google.api.services.calendar.model.CalendarList calendars = getClient().calendarList().list().execute();
             if (calendars.getItems() != null) {
                 for (CalendarListEntry entry : calendars.getItems()) {


Mime
View raw message