continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eveni...@apache.org
Subject svn commit: r620612 - /maven/continuum/branches/continuum-1.x/continuum-test/src/main/java/org/apache/maven/continuum/AbstractContinuumTest.java
Date Mon, 11 Feb 2008 21:14:24 GMT
Author: evenisse
Date: Mon Feb 11 13:14:03 2008
New Revision: 620612

URL: http://svn.apache.org/viewvc?rev=620612&view=rev
Log:
Clean

Modified:
    maven/continuum/branches/continuum-1.x/continuum-test/src/main/java/org/apache/maven/continuum/AbstractContinuumTest.java

Modified: maven/continuum/branches/continuum-1.x/continuum-test/src/main/java/org/apache/maven/continuum/AbstractContinuumTest.java
URL: http://svn.apache.org/viewvc/maven/continuum/branches/continuum-1.x/continuum-test/src/main/java/org/apache/maven/continuum/AbstractContinuumTest.java?rev=620612&r1=620611&r2=620612&view=diff
==============================================================================
--- maven/continuum/branches/continuum-1.x/continuum-test/src/main/java/org/apache/maven/continuum/AbstractContinuumTest.java
(original)
+++ maven/continuum/branches/continuum-1.x/continuum-test/src/main/java/org/apache/maven/continuum/AbstractContinuumTest.java
Mon Feb 11 13:14:03 2008
@@ -40,7 +40,6 @@
 import java.net.URL;
 import java.util.ArrayList;
 import java.util.Collection;
-import java.util.Iterator;
 import java.util.List;
 import java.util.Map;
 import java.util.Properties;
@@ -81,13 +80,14 @@
     protected void createDefaultProjectGroup()
         throws Exception
     {
-        ProjectGroup group;
         try
         {
-            group = getDefaultProjectGroup();
+            getDefaultProjectGroup();
         }
         catch ( ContinuumObjectNotFoundException e )
         {
+            ProjectGroup group;
+
             group = new ProjectGroup();
 
             group.setName( "Default Project Group" );
@@ -96,7 +96,7 @@
 
             group.setDescription( "Contains all projects that do not have a group of their
own" );
 
-            group = store.addProjectGroup( group );
+            store.addProjectGroup( group );
         }
     }
 
@@ -158,10 +158,8 @@
 
         Properties properties = jdoFactory.getProperties();
 
-        for ( Iterator it = properties.entrySet().iterator(); it.hasNext(); )
+        for ( Map.Entry entry : properties.entrySet() )
         {
-            Map.Entry entry = (Map.Entry) it.next();
-
             System.setProperty( (String) entry.getKey(), (String) entry.getValue() );
         }
 



Mime
View raw message