continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ri...@apache.org
Subject svn commit: r499706 - /maven/continuum/branches/id-refactor/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java
Date Thu, 25 Jan 2007 09:11:53 GMT
Author: rinku
Date: Thu Jan 25 01:11:50 2007
New Revision: 499706

URL: http://svn.apache.org/viewvc?view=rev&rev=499706
Log:
o  updated references to Integer to Long

Modified:
    maven/continuum/branches/id-refactor/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java

Modified: maven/continuum/branches/id-refactor/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java
URL: http://svn.apache.org/viewvc/maven/continuum/branches/id-refactor/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java?view=diff&rev=499706&r1=499705&r2=499706
==============================================================================
--- maven/continuum/branches/id-refactor/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java
(original)
+++ maven/continuum/branches/id-refactor/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java
Thu Jan 25 01:11:50 2007
@@ -782,7 +782,7 @@
             {
                 for ( Iterator buildDefinitionIterator = buildDefIds.iterator(); buildDefinitionIterator.hasNext();
)
                 {
-                    Integer buildDefId = (Integer) buildDefinitionIterator.next();
+                    Long buildDefId = (Long) buildDefinitionIterator.next();
 
                     if ( buildDefId != null && !isInBuildingQueue( project.getId(),
buildDefId.intValue() ) &&
                         !isInCheckoutQueue( project.getId() ) )
@@ -803,7 +803,7 @@
             getLogger().info( "Processing " + buildDefinitionIds.size() + " build definitions
for project " + project );
             for ( Iterator buildDefinitionIterator = buildDefinitionIds.iterator(); buildDefinitionIterator.hasNext();
)
             {
-                Integer buildDefId = (Integer) buildDefinitionIterator.next();
+                Long buildDefId = (Long) buildDefinitionIterator.next();
 
                 if ( buildDefId != null && !isInBuildingQueue( project.getId(), buildDefId.intValue()
) &&
                     !isInCheckoutQueue( project.getId() ) )
@@ -1183,7 +1183,7 @@
 
         executeAction( "add-project-to-checkout-queue", context );
 
-        return ( (Integer) context.get( AbstractContinuumAction.KEY_PROJECT_ID ) ).intValue();
+        return ( (Long) context.get( AbstractContinuumAction.KEY_PROJECT_ID ) ).intValue();
     }
 
     /**
@@ -1947,7 +1947,7 @@
 
         schedule.setCronExpression( (String) configuration.get( "schedule.cronExpression"
) );
 
-        schedule.setDelay( Integer.parseInt( (String) configuration.get( "schedule.delay"
) ) );
+        schedule.setDelay( Long.parseLong( (String) configuration.get( "schedule.delay" )
) );
 
         schedule.setActive( Boolean.valueOf( (String) configuration.get( "schedule.active"
) ).booleanValue() );
 



Mime
View raw message