felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pde...@apache.org
Subject svn commit: r1605988 - /felix/sandbox/pderop/dependencymanager-prototype/org.apache.felix.dm.benchmark/src/org/apache/felix/dm/benchmark/controller/impl/ScenarioControllerImpl.java
Date Fri, 27 Jun 2014 08:33:38 GMT
Author: pderop
Date: Fri Jun 27 08:33:38 2014
New Revision: 1605988

URL: http://svn.apache.org/r1605988
Log:
fixed artistsAdded method

Modified:
    felix/sandbox/pderop/dependencymanager-prototype/org.apache.felix.dm.benchmark/src/org/apache/felix/dm/benchmark/controller/impl/ScenarioControllerImpl.java

Modified: felix/sandbox/pderop/dependencymanager-prototype/org.apache.felix.dm.benchmark/src/org/apache/felix/dm/benchmark/controller/impl/ScenarioControllerImpl.java
URL: http://svn.apache.org/viewvc/felix/sandbox/pderop/dependencymanager-prototype/org.apache.felix.dm.benchmark/src/org/apache/felix/dm/benchmark/controller/impl/ScenarioControllerImpl.java?rev=1605988&r1=1605987&r2=1605988&view=diff
==============================================================================
--- felix/sandbox/pderop/dependencymanager-prototype/org.apache.felix.dm.benchmark/src/org/apache/felix/dm/benchmark/controller/impl/ScenarioControllerImpl.java
(original)
+++ felix/sandbox/pderop/dependencymanager-prototype/org.apache.felix.dm.benchmark/src/org/apache/felix/dm/benchmark/controller/impl/ScenarioControllerImpl.java
Fri Jun 27 08:33:38 2014
@@ -96,12 +96,12 @@ public class ScenarioControllerImpl impl
 
     @Override
     public void artistAdded(Artist artist) {
-        componentAdded();
         int size = artist.getAlbums().size();
         if (size != Artist.ALBUMS) {
             throw new IllegalStateException("Artist has not created expected number of albums:"
+ size);
         }
         artist.play();
+        componentAdded();
     }
     
     @Override
@@ -149,7 +149,7 @@ public class ScenarioControllerImpl impl
 
     private void displaySortedResults(List<Long> sortedResults, int iterations) {
         // We don't display an average of the duration times; Instead, we sort the results,
-        // and we display the significant results (the first entry is the fastest, the midle
entry is the
+        // and we display the significant results (the first entry is the fastest, the middle
entry is the
         // average, the last entry is the slowest ...)
         out.println("\n  results=" +  
             Stream.of(0f, 24.99f, 49.99f, 74.99f, 99.99f)



Mime
View raw message