camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject svn commit: r801961 - in /camel/trunk/components/camel-xmpp/src: main/java/org/apache/camel/component/xmpp/XmppComponent.java main/java/org/apache/camel/component/xmpp/XmppEndpoint.java test/java/org/apache/camel/component/xmpp/XmppRouteChatTest.java
Date Fri, 07 Aug 2009 12:01:50 GMT
Author: ningjiang
Date: Fri Aug  7 12:01:50 2009
New Revision: 801961

URL: http://svn.apache.org/viewvc?rev=801961&view=rev
Log:
Fixed CS errors of the camel-xmpp

Modified:
    camel/trunk/components/camel-xmpp/src/main/java/org/apache/camel/component/xmpp/XmppComponent.java
    camel/trunk/components/camel-xmpp/src/main/java/org/apache/camel/component/xmpp/XmppEndpoint.java
    camel/trunk/components/camel-xmpp/src/test/java/org/apache/camel/component/xmpp/XmppRouteChatTest.java

Modified: camel/trunk/components/camel-xmpp/src/main/java/org/apache/camel/component/xmpp/XmppComponent.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-xmpp/src/main/java/org/apache/camel/component/xmpp/XmppComponent.java?rev=801961&r1=801960&r2=801961&view=diff
==============================================================================
--- camel/trunk/components/camel-xmpp/src/main/java/org/apache/camel/component/xmpp/XmppComponent.java
(original)
+++ camel/trunk/components/camel-xmpp/src/main/java/org/apache/camel/component/xmpp/XmppComponent.java
Fri Aug  7 12:01:50 2009
@@ -37,7 +37,7 @@
     @Override
     protected Endpoint createEndpoint(String uri, String remaining, Map parameters) throws
Exception {
 
-        if ( endpointCache.containsKey(uri) ) {
+        if (endpointCache.containsKey(uri)) {
             LOG.debug("Using cached endpoint for URI " + uri);
             return endpointCache.get(uri);
         }

Modified: camel/trunk/components/camel-xmpp/src/main/java/org/apache/camel/component/xmpp/XmppEndpoint.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-xmpp/src/main/java/org/apache/camel/component/xmpp/XmppEndpoint.java?rev=801961&r1=801960&r2=801961&view=diff
==============================================================================
--- camel/trunk/components/camel-xmpp/src/main/java/org/apache/camel/component/xmpp/XmppEndpoint.java
(original)
+++ camel/trunk/components/camel-xmpp/src/main/java/org/apache/camel/component/xmpp/XmppEndpoint.java
Fri Aug  7 12:01:50 2009
@@ -17,8 +17,6 @@
 package org.apache.camel.component.xmpp;
 
 import java.util.Iterator;
-import java.util.HashMap;
-import java.util.Map;
 
 import org.apache.camel.Consumer;
 import org.apache.camel.Exchange;
@@ -123,8 +121,9 @@
 
     public XMPPConnection createConnection() throws XMPPException {
 
-        if ( connection != null )
+        if (connection != null) {
             return connection;
+        }
 
         if (port > 0) {
             if (getServiceName() == null) {
@@ -198,8 +197,9 @@
     }
 
     protected synchronized void destroy() throws Exception {
-        if ( connection != null )
+        if (connection != null) {
             connection.disconnect();
+        }
     }
 
     // Properties

Modified: camel/trunk/components/camel-xmpp/src/test/java/org/apache/camel/component/xmpp/XmppRouteChatTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-xmpp/src/test/java/org/apache/camel/component/xmpp/XmppRouteChatTest.java?rev=801961&r1=801960&r2=801961&view=diff
==============================================================================
--- camel/trunk/components/camel-xmpp/src/test/java/org/apache/camel/component/xmpp/XmppRouteChatTest.java
(original)
+++ camel/trunk/components/camel-xmpp/src/test/java/org/apache/camel/component/xmpp/XmppRouteChatTest.java
Fri Aug  7 12:01:50 2009
@@ -20,12 +20,9 @@
 import org.apache.camel.Processor;
 import org.apache.camel.builder.RouteBuilder;
 import org.apache.camel.component.mock.MockEndpoint;
-import org.apache.camel.component.xmpp.XmppMessage;
 import org.apache.camel.test.junit4.CamelTestSupport;
-
-import org.junit.Test;
-
 import org.jivesoftware.smack.packet.Message;
+import org.junit.Test;
 
 /**
  * @version $Revision$



Mime
View raw message