camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject svn commit: r1144200 - /camel/trunk/components/camel-mail/src/main/java/org/apache/camel/component/mail/MailConsumer.java
Date Fri, 08 Jul 2011 09:03:01 GMT
Author: ningjiang
Date: Fri Jul  8 09:03:01 2011
New Revision: 1144200

URL: http://svn.apache.org/viewvc?rev=1144200&view=rev
Log:
Fixed the CS error of MailConsumer

Modified:
    camel/trunk/components/camel-mail/src/main/java/org/apache/camel/component/mail/MailConsumer.java

Modified: camel/trunk/components/camel-mail/src/main/java/org/apache/camel/component/mail/MailConsumer.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-mail/src/main/java/org/apache/camel/component/mail/MailConsumer.java?rev=1144200&r1=1144199&r2=1144200&view=diff
==============================================================================
--- camel/trunk/components/camel-mail/src/main/java/org/apache/camel/component/mail/MailConsumer.java
(original)
+++ camel/trunk/components/camel-mail/src/main/java/org/apache/camel/component/mail/MailConsumer.java
Fri Jul  8 09:03:01 2011
@@ -346,16 +346,14 @@ public class MailConsumer extends Schedu
     protected String generatePop3Uid(Message message) {
         String uid = null;
 
-        // create an UID based on message headers on the POP3Message, that ought to be unique
+        // create an UID based on message headers on the POP3Message, that ought
+        // to be unique
         StringBuilder buffer = new StringBuilder();
         try {
             Enumeration it = message.getAllHeaders();
             while (it.hasMoreElements()) {
-                Header header = (Header) it.nextElement();
-                buffer.append(header.getName())
-                  .append("=")
-                  .append(header.getValue())
-                  .append("\n");
+                Header header = (Header)it.nextElement();
+                buffer.append(header.getName()).append("=").append(header.getValue()).append("\n");
             }
             if (buffer.length() > 0) {
                 LOG.debug("Generating UID from the following:\n" + buffer);



Mime
View raw message