You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by hb...@apache.org on 2011/06/27 20:51:18 UTC

svn commit: r1140265 - /maven/plugins/trunk/maven-changes-plugin/src/main/java/org/apache/maven/plugin/announcement/AnnouncementMailMojo.java

Author: hboutemy
Date: Mon Jun 27 18:51:18 2011
New Revision: 1140265

URL: http://svn.apache.org/viewvc?rev=1140265&view=rev
Log:
code formatting

Modified:
    maven/plugins/trunk/maven-changes-plugin/src/main/java/org/apache/maven/plugin/announcement/AnnouncementMailMojo.java

Modified: maven/plugins/trunk/maven-changes-plugin/src/main/java/org/apache/maven/plugin/announcement/AnnouncementMailMojo.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-changes-plugin/src/main/java/org/apache/maven/plugin/announcement/AnnouncementMailMojo.java?rev=1140265&r1=1140264&r2=1140265&view=diff
==============================================================================
--- maven/plugins/trunk/maven-changes-plugin/src/main/java/org/apache/maven/plugin/announcement/AnnouncementMailMojo.java (original)
+++ maven/plugins/trunk/maven-changes-plugin/src/main/java/org/apache/maven/plugin/announcement/AnnouncementMailMojo.java Mon Jun 27 18:51:18 2011
@@ -291,7 +291,7 @@ public class AnnouncementMailMojo
                 mailMsg.addTo( email, "" );
             }
 
-            if(getCcAddresses() != null)
+            if ( getCcAddresses() != null )
             {
                 final Iterator it2 = getCcAddresses().iterator();
                 while ( it2.hasNext() )
@@ -302,7 +302,7 @@ public class AnnouncementMailMojo
                 }
             }
 
-            if(getBccAddresses() != null)
+            if ( getBccAddresses() != null )
             {
                 final Iterator it3 = getBccAddresses().iterator();
                 while ( it3.hasNext() )
@@ -363,16 +363,16 @@ public class AnnouncementMailMojo
     protected MailSender getActualMailSender()
         throws MojoExecutionException
     {
-        if (senderString != null) 
+        if ( senderString != null )
         {
             try
             {
-                InternetAddress ia = new InternetAddress(senderString, true);
-                return new MailSender(ia.getPersonal(), ia.getAddress());
+                InternetAddress ia = new InternetAddress( senderString, true );
+                return new MailSender( ia.getPersonal(), ia.getAddress() );
             }
             catch ( AddressException e )
             {
-                throw new MojoExecutionException("Invalid value for change.sender: ", e);
+                throw new MojoExecutionException( "Invalid value for change.sender: ", e );
             }
         }
         if ( mailSender != null && mailSender.getEmail() != null )