continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eveni...@apache.org
Subject svn commit: r587081 - /maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java
Date Mon, 22 Oct 2007 13:10:00 GMT
Author: evenisse
Date: Mon Oct 22 06:09:59 2007
New Revision: 587081

URL: http://svn.apache.org/viewvc?rev=587081&view=rev
Log:
reuse methods

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

Modified: maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java
URL: http://svn.apache.org/viewvc/maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java?rev=587081&r1=587080&r2=587081&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java
(original)
+++ maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java
Mon Oct 22 06:09:59 2007
@@ -699,7 +699,7 @@
     {
         try
         {
-            Project project = store.getProjectWithBuilds( projectId );
+            Project project = getProjectWithBuilds( projectId );
 
             getLogger().info( "Remove project " + project.getName() + "(" + projectId + ")"
);
 
@@ -2788,19 +2788,12 @@
     public Collection<BuildResult> getBuildResultsForProject( int projectId )
         throws ContinuumException
     {
-        try
-        {
-            ArrayList<BuildResult> buildResults =
-                new ArrayList<BuildResult>( store.getProjectWithBuilds( projectId ).getBuildResults()
);
+        ArrayList<BuildResult> buildResults =
+            new ArrayList<BuildResult>( getProjectWithBuilds( projectId ).getBuildResults()
);
 
-            Collections.reverse( buildResults );
+        Collections.reverse( buildResults );
 
-            return buildResults;
-        }
-        catch ( ContinuumStoreException e )
-        {
-            throw logAndCreateException( "Unable to get builds for project", e );
-        }
+        return buildResults;
     }
 
     // ----------------------------------------------------------------------



Mime
View raw message