removed use of AtomicLong in BundleContextInterceptor since it's a 1.5+ feature.

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1489374 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/dependencymanager/core/src/main/java/org/apache/felix/dm/impl/index/BundleContextInterceptor.java b/dependencymanager/core/src/main/java/org/apache/felix/dm/impl/index/BundleContextInterceptor.java
index 1f25811..62dc4e2 100644
--- a/dependencymanager/core/src/main/java/org/apache/felix/dm/impl/index/BundleContextInterceptor.java
+++ b/dependencymanager/core/src/main/java/org/apache/felix/dm/impl/index/BundleContextInterceptor.java
@@ -37,7 +37,7 @@
  */
 public class BundleContextInterceptor extends BundleContextInterceptorBase {
 	private static final String INDEX_LOG_BAD_PERFORMING_FILTERS = "org.apache.felix.dependencymanager.index.logbadperformingfilters";
-	private static AtomicLong maxLookupTime = new AtomicLong(0L);
+	private static long maxLookupTime = 0L;
     private final ServiceRegistryCache m_cache;
     private final boolean perfmon = "true".equals(System.getProperty(INDEX_LOG_BAD_PERFORMING_FILTERS));
 	private final Logger m_logger;
@@ -102,8 +102,8 @@
             }
             if (perfmon) {
 	        	long duration = System.currentTimeMillis() - start;
-	        	if (maxLookupTime.get() < duration) {
-	        		maxLookupTime.set(duration);
+	        	if (maxLookupTime < duration) {
+	        		maxLookupTime = duration;
 	        		m_logger.log(org.apache.felix.dm.impl.Logger.LOG_DEBUG, "new worst performing filter (" + duration + "ms.): " + clazz + " " + filter);
 	        	}
             }
@@ -117,8 +117,8 @@
             ServiceReference[] serviceReferences = m_context.getServiceReferences(clazz, filter);
             if (perfmon) {
 	        	long duration = System.currentTimeMillis() - start;
-	        	if (maxLookupTime.get() < duration) {
-	        		maxLookupTime.set(duration);
+	        	if (maxLookupTime < duration) {
+	        		maxLookupTime = duration;
 	        		System.out.println("new worst performing filter (" + duration + "ms.): " + clazz + " " + filter);
 	        	}
             }