maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hbout...@apache.org
Subject svn commit: r1336879 - /maven/enforcer/trunk/enforcer-rules/src/main/java/org/apache/maven/plugins/enforcer/RequirePluginVersions.java
Date Thu, 10 May 2012 20:27:44 GMT
Author: hboutemy
Date: Thu May 10 20:27:44 2012
New Revision: 1336879

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

Modified:
    maven/enforcer/trunk/enforcer-rules/src/main/java/org/apache/maven/plugins/enforcer/RequirePluginVersions.java

Modified: maven/enforcer/trunk/enforcer-rules/src/main/java/org/apache/maven/plugins/enforcer/RequirePluginVersions.java
URL: http://svn.apache.org/viewvc/maven/enforcer/trunk/enforcer-rules/src/main/java/org/apache/maven/plugins/enforcer/RequirePluginVersions.java?rev=1336879&r1=1336878&r2=1336879&view=diff
==============================================================================
--- maven/enforcer/trunk/enforcer-rules/src/main/java/org/apache/maven/plugins/enforcer/RequirePluginVersions.java
(original)
+++ maven/enforcer/trunk/enforcer-rules/src/main/java/org/apache/maven/plugins/enforcer/RequirePluginVersions.java
Thu May 10 20:27:44 2012
@@ -174,10 +174,11 @@ public class RequirePluginVersions
             // The lifecycle API changed from Maven 2 to 3 so we have to do a hack to figure
             // out which one we're using.
             Field field = ReflectionUtils.getFieldByNameIncludingSuperclasses( "defaultLifeCycles",
life.getClass() );
-            if (field != null) // Using Maven 3
+            if ( field != null ) // Using Maven 3
             {
-                Object defaultLifeCycles = ReflectionUtils.getValueIncludingSuperclasses("defaultLifeCycles",
life);
-                Map lifecyclesMap = (Map)ReflectionUtils.getValueIncludingSuperclasses("lifecycles",
defaultLifeCycles);
+                Object defaultLifeCycles = ReflectionUtils.getValueIncludingSuperclasses(
"defaultLifeCycles", life );
+                Map lifecyclesMap =
+                    (Map) ReflectionUtils.getValueIncludingSuperclasses( "lifecycles", defaultLifeCycles
);
                 lifecycles = lifecyclesMap.values();
             }
             else  // Using Maven 2
@@ -203,7 +204,9 @@ public class RequirePluginVersions
 
 
             // pull out any we should skip
-            allPlugins = (Set) removeUncheckedPlugins( combineUncheckedPlugins( unCheckedPlugins,
unCheckedPluginList ), allPlugins );
+            allPlugins =
+                (Set) removeUncheckedPlugins( combineUncheckedPlugins( unCheckedPlugins,
unCheckedPluginList ),
+                                              allPlugins );
 
             // there's nothing to do here
             if ( allPlugins.isEmpty() )
@@ -376,7 +379,7 @@ public class RequirePluginVersions
             {
                 uncheckedPlugins = new HashSet();
             }
-            else if (!uncheckedPlugins.isEmpty() && log != null)
+            else if ( !uncheckedPlugins.isEmpty() && log != null )
             {
                 log.warn( "The parameter 'unCheckedPlugins' is deprecated. Use 'unCheckedPluginList'
instead" );
             }
@@ -1017,7 +1020,7 @@ public class RequirePluginVersions
         {
             pomName = project.getFile().getName();
         }
-        catch (Exception e)
+        catch ( Exception e )
         {
             pomName = "pom.xml";
         }



Mime
View raw message