You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by da...@apache.org on 2012/09/18 15:55:24 UTC

svn commit: r1387165 - /activemq/trunk/activemq-core/src/main/java/org/apache/activemq/util/osgi/Activator.java

Author: davsclaus
Date: Tue Sep 18 13:55:24 2012
New Revision: 1387165

URL: http://svn.apache.org/viewvc?rev=1387165&view=rev
Log:
Polished

Modified:
    activemq/trunk/activemq-core/src/main/java/org/apache/activemq/util/osgi/Activator.java

Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/util/osgi/Activator.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/util/osgi/Activator.java?rev=1387165&r1=1387164&r2=1387165&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/util/osgi/Activator.java (original)
+++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/util/osgi/Activator.java Tue Sep 18 13:55:24 2012
@@ -20,6 +20,7 @@ import java.io.IOException;
 import java.io.InputStream;
 import java.io.InputStreamReader;
 import java.io.BufferedReader;
+import java.util.List;
 import java.util.Properties;
 import java.util.ArrayList;
 import java.util.concurrent.ConcurrentHashMap;
@@ -148,7 +149,7 @@ public class Activator implements Bundle
 
                 String className = properties.getProperty("class");
                 if (className == null) {
-                    warnings.append("("+(wrrningCounter++)+") Invalid sevice file in bundle "+wrapper+": 'class' property not defined.");
+                    warnings.append("("+(wrrningCounter++)+") Invalid service file in bundle "+wrapper+": 'class' property not defined.");
                     continue;
                 }
 
@@ -166,7 +167,7 @@ public class Activator implements Bundle
             }
 
             if( clazz == null ) {
-                // Since OSGi is such a tricky enviorment to work in.. lets give folks the
+                // Since OSGi is such a tricky environment to work in.. lets give folks the
                 // most information we can in the error message.
                 String msg = "Service not found: '" + path + "'";
                 if (warnings.length()!= 0) {
@@ -218,7 +219,7 @@ public class Activator implements Bundle
 
     private static class BundleWrapper {
         private final Bundle bundle;
-        private final ArrayList<String> cachedServices = new ArrayList<String>();
+        private final List<String> cachedServices = new ArrayList<String>();
 
         public BundleWrapper(Bundle bundle) {
             this.bundle = bundle;