From 26806e7798cea714da0345052eaef0608c370519 Mon Sep 17 00:00:00 2001 From: Claus Ibsen Date: Tue, 18 Sep 2012 13:55:24 +0000 Subject: [PATCH] Polished git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1387165 13f79535-47bb-0310-9956-ffa450edef68 --- .../main/java/org/apache/activemq/util/osgi/Activator.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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;