continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ri...@apache.org
Subject svn commit: r490105 - in /maven/continuum/branches/key-based-refactor/continuum-store/src: main/java/org/apache/maven/continuum/store/JdoContinuumStore.java test/java/org/apache/maven/continuum/store/ContinuumStoreTest.java
Date Mon, 25 Dec 2006 03:15:36 GMT
Author: rinku
Date: Sun Dec 24 19:15:35 2006
New Revision: 490105

URL: http://svn.apache.org/viewvc?view=rev&rev=490105
Log:
o  clean ups

Modified:
    maven/continuum/branches/key-based-refactor/continuum-store/src/main/java/org/apache/maven/continuum/store/JdoContinuumStore.java
    maven/continuum/branches/key-based-refactor/continuum-store/src/test/java/org/apache/maven/continuum/store/ContinuumStoreTest.java

Modified: maven/continuum/branches/key-based-refactor/continuum-store/src/main/java/org/apache/maven/continuum/store/JdoContinuumStore.java
URL: http://svn.apache.org/viewvc/maven/continuum/branches/key-based-refactor/continuum-store/src/main/java/org/apache/maven/continuum/store/JdoContinuumStore.java?view=diff&rev=490105&r1=490104&r2=490105
==============================================================================
--- maven/continuum/branches/key-based-refactor/continuum-store/src/main/java/org/apache/maven/continuum/store/JdoContinuumStore.java
(original)
+++ maven/continuum/branches/key-based-refactor/continuum-store/src/main/java/org/apache/maven/continuum/store/JdoContinuumStore.java
Sun Dec 24 19:15:35 2006
@@ -622,10 +622,8 @@
 
     private BuildDefinition getDefaultBuildDefinitionForProjectGroup( String groupKey )
         throws ContinuumStoreException, ContinuumObjectNotFoundException
-    {
-        GroupProjectKey key = new GroupProjectKey();
-        key.setGroupKey( groupKey );
-        ProjectGroup projectGroup = getProjectGroupWithBuildDetails( key );
+    {        
+        ProjectGroup projectGroup = getProjectGroupWithBuildDetails( new GroupProjectKey(groupKey,
null) );
 
         for ( Iterator i = projectGroup.getBuildDefinitions().iterator(); i.hasNext(); )
         {
@@ -1171,9 +1169,7 @@
         ProjectGroup pg = null;
         try
         {
-            GroupProjectKey key = new GroupProjectKey();
-            key.setGroupKey( projectGroup.getKey() );
-            pg = getProjectGroupWithProjects( key );
+            pg = getProjectGroupWithProjects( new GroupProjectKey(projectGroup.getKey(),
null));
         }
         catch ( Exception e )
         {

Modified: maven/continuum/branches/key-based-refactor/continuum-store/src/test/java/org/apache/maven/continuum/store/ContinuumStoreTest.java
URL: http://svn.apache.org/viewvc/maven/continuum/branches/key-based-refactor/continuum-store/src/test/java/org/apache/maven/continuum/store/ContinuumStoreTest.java?view=diff&rev=490105&r1=490104&r2=490105
==============================================================================
--- maven/continuum/branches/key-based-refactor/continuum-store/src/test/java/org/apache/maven/continuum/store/ContinuumStoreTest.java
(original)
+++ maven/continuum/branches/key-based-refactor/continuum-store/src/test/java/org/apache/maven/continuum/store/ContinuumStoreTest.java
Sun Dec 24 19:15:35 2006
@@ -29,6 +29,7 @@
 import org.apache.maven.continuum.model.system.Installation;
 
 import javax.jdo.JDODetachedFieldAccessException;
+
 import java.util.Arrays;
 import java.util.Collection;
 import java.util.Iterator;



Mime
View raw message