continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tryg...@apache.org
Subject svn commit: r220137 - /maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/store/JdoContinuumStore.java
Date Thu, 21 Jul 2005 16:34:21 GMT
Author: trygvis
Date: Thu Jul 21 09:34:15 2005
New Revision: 220137

URL: http://svn.apache.org/viewcvs?rev=220137&view=rev
Log:
o Removing some debugging output and silencing some IDEA inspection comments.

Modified:
    maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/store/JdoContinuumStore.java

Modified: maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/store/JdoContinuumStore.java
URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/store/JdoContinuumStore.java?rev=220137&r1=220136&r2=220137&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/store/JdoContinuumStore.java
(original)
+++ maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/store/JdoContinuumStore.java
Thu Jul 21 09:34:15 2005
@@ -113,8 +113,6 @@
                     ContinuumSchedule schedule = (ContinuumSchedule) i.next();
 
                     boolean r = schedule.getProjects().remove( project );
-
-                    System.out.println( "removed: " + r );
                 }
             }
 
@@ -126,9 +124,7 @@
                 {
                     ContinuumBuildGroup buildGroup = (ContinuumBuildGroup) i.next();
 
-                    boolean r = buildGroup.getProjects().remove( project );
-
-                    System.out.println( "removed: " + r );
+                    buildGroup.getProjects().remove( project );
                 }
             }
 
@@ -136,17 +132,9 @@
             {
                 ContinuumProjectGroup pg = project.getProjectGroup();
 
-                System.out.println( "before: " + pg.getProjects() );
-
-                boolean removed = pg.getProjects().remove( project );
-
-                System.out.println( "removed: " + removed );
-
-                System.out.println( "after: " + pg.getProjects() );
+                pg.getProjects().remove( project );
             }
 
-            System.out.println( "------------------------------------------" );
-
             pm.deletePersistent( project );
 
             commit( tx );
@@ -1096,9 +1084,7 @@
 
         Object id = pm.newObjectIdInstance( ContinuumProject.class, projectId );
 
-        ContinuumProject project = (ContinuumProject) pm.getObjectById( id );
-
-        return project;
+        return (ContinuumProject) pm.getObjectById( id );
     }
 
     private ContinuumBuild getContinuumBuild( PersistenceManager pm,
@@ -1106,9 +1092,7 @@
     {
         Object id = pm.newObjectIdInstance( ContinuumBuild.class, buildId );
 
-        ContinuumBuild build = (ContinuumBuild) pm.getObjectById( id );
-
-        return build;
+        return (ContinuumBuild) pm.getObjectById( id );
     }
 
     private ContinuumSchedule getContinuumSchedule( PersistenceManager pm,
@@ -1159,13 +1143,13 @@
 
             Object id = pm.getObjectId( object );
 
-            object = pm.getObjectById( id );
+            Object addedObject = pm.getObjectById( id );
 
-            object = pm.detachCopy( object );
+            addedObject = pm.detachCopy( addedObject );
 
             commit( tx );
 
-            return object;
+            return addedObject;
         }
         finally
         {
@@ -1179,19 +1163,14 @@
 
         Object id = pm.getObjectId( object );
 
-        object = pm.getObjectById( id );
+        Object persistentObject = pm.getObjectById( id );
 
         if ( detach )
         {
-            object = pm.detachCopy( object );
+            persistentObject = pm.detachCopy( persistentObject );
         }
 
-        return object;
-    }
-
-    private void makePersistentAll( PersistenceManager pm, Collection object )
-    {
-        pm.makePersistentAll( object );
+        return persistentObject;
     }
 
     private Object getDetailedObject( Class clazz, String id, String fetchGroup )



Mime
View raw message