felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dsav...@apache.org
Subject svn commit: r1084784 - /felix/trunk/sigil/gogo/junit/src/org/apache/felix/sigil/gogo/junit/Activator.java
Date Wed, 23 Mar 2011 22:22:31 GMT
Author: dsavage
Date: Wed Mar 23 22:22:31 2011
New Revision: 1084784

URL: http://svn.apache.org/viewvc?rev=1084784&view=rev
Log:
minor internal tidyup

Modified:
    felix/trunk/sigil/gogo/junit/src/org/apache/felix/sigil/gogo/junit/Activator.java

Modified: felix/trunk/sigil/gogo/junit/src/org/apache/felix/sigil/gogo/junit/Activator.java
URL: http://svn.apache.org/viewvc/felix/trunk/sigil/gogo/junit/src/org/apache/felix/sigil/gogo/junit/Activator.java?rev=1084784&r1=1084783&r2=1084784&view=diff
==============================================================================
--- felix/trunk/sigil/gogo/junit/src/org/apache/felix/sigil/gogo/junit/Activator.java (original)
+++ felix/trunk/sigil/gogo/junit/src/org/apache/felix/sigil/gogo/junit/Activator.java Wed
Mar 23 22:22:31 2011
@@ -39,14 +39,14 @@ public class Activator implements Bundle
 
     public void start( final BundleContext ctx ) throws Exception
     {
+        ServiceTracker tracker = new ServiceTracker( ctx, JUnitService.class.getName(), null
);
+        tracker.open();
+
         Hashtable<String, Object> props = new Hashtable<String, Object>();
         props.put( CommandProcessor.COMMAND_SCOPE, "sigil" );
         props.put( CommandProcessor.COMMAND_FUNCTION, new String[]
             { "runTests", "listTests" } );
 
-        ServiceTracker tracker = new ServiceTracker( ctx, JUnitService.class.getName(), null
);
-        tracker.open();
-
         ctx.registerService( SigilJunitRunner.class.getName(), new SigilJunitRunner( tracker
), props );
 
         props.put( CommandProcessor.COMMAND_FUNCTION, new String[]
@@ -64,7 +64,7 @@ public class Activator implements Bundle
     /**
      * @return
      */
-    private String[] getAssertMethods()
+    private static String[] getAssertMethods()
     {
         ArrayList<String> list = new ArrayList<String>();
         for ( Method m : Assert.class.getDeclaredMethods() )



Mime
View raw message