maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hbout...@apache.org
Subject svn commit: r743918 - /maven/components/trunk/maven-core/src/main/java/org/apache/maven/settings/DefaultMavenSettingsBuilder.java
Date Thu, 12 Feb 2009 22:58:36 GMT
Author: hboutemy
Date: Thu Feb 12 22:58:36 2009
New Revision: 743918

URL: http://svn.apache.org/viewvc?rev=743918&view=rev
Log:
fixed coding style

Modified:
    maven/components/trunk/maven-core/src/main/java/org/apache/maven/settings/DefaultMavenSettingsBuilder.java

Modified: maven/components/trunk/maven-core/src/main/java/org/apache/maven/settings/DefaultMavenSettingsBuilder.java
URL: http://svn.apache.org/viewvc/maven/components/trunk/maven-core/src/main/java/org/apache/maven/settings/DefaultMavenSettingsBuilder.java?rev=743918&r1=743917&r2=743918&view=diff
==============================================================================
--- maven/components/trunk/maven-core/src/main/java/org/apache/maven/settings/DefaultMavenSettingsBuilder.java
(original)
+++ maven/components/trunk/maven-core/src/main/java/org/apache/maven/settings/DefaultMavenSettingsBuilder.java
Thu Feb 12 22:58:36 2009
@@ -134,21 +134,25 @@
     {
         List<Server> servers = settings.getServers();
         
-        if( servers != null && !servers.isEmpty() )
+        if ( servers != null && !servers.isEmpty() )
+        {
             try
             {
-                for( Server server : servers )
+                for ( Server server : servers )
                 {
-                    if( server.getPassword() != null )
+                    if ( server.getPassword() != null )
+                    {
                         server.setPassword( securityDispatcher.decrypt( server.getPassword()
) );
+                    }
                 }
             }
-            catch( Exception e )
+            catch ( Exception e )
             {
-                // 2009-02-12 Oleg: get do this because 2 levels up Exception is 
+                // 2009-02-12 Oleg: get do this because 2 levels up Exception is
                 // caught, not exception type does not matter
                 throw new IOException( e.getMessage() );
             }
+        }
     }
 
     private Settings interpolate( Settings settings, MavenExecutionRequest request )



Mime
View raw message