diff --git a/activemq-core/src/main/java/org/apache/activemq/util/osgi/Activator.java b/activemq-core/src/main/java/org/apache/activemq/util/osgi/Activator.java index 135fb2e07e..ea3729ac65 100644 --- a/activemq-core/src/main/java/org/apache/activemq/util/osgi/Activator.java +++ b/activemq-core/src/main/java/org/apache/activemq/util/osgi/Activator.java @@ -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 BundleActivator, SynchronousBundleListener, Ob 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 BundleActivator, SynchronousBundleListener, Ob } 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 BundleActivator, SynchronousBundleListener, Ob private static class BundleWrapper { private final Bundle bundle; - private final ArrayList cachedServices = new ArrayList(); + private final List cachedServices = new ArrayList(); public BundleWrapper(Bundle bundle) { this.bundle = bundle;