activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r358485 - /incubator/activemq/trunk/activemq-core/src/main/java/org/activemq/broker/Main.java
Date Thu, 22 Dec 2005 04:27:31 GMT
Author: chirino
Date: Wed Dec 21 20:27:28 2005
New Revision: 358485

URL: http://svn.apache.org/viewcvs?rev=358485&view=rev
Log:
remove the java 5 dependency.

Modified:
    incubator/activemq/trunk/activemq-core/src/main/java/org/activemq/broker/Main.java

Modified: incubator/activemq/trunk/activemq-core/src/main/java/org/activemq/broker/Main.java
URL: http://svn.apache.org/viewcvs/incubator/activemq/trunk/activemq-core/src/main/java/org/activemq/broker/Main.java?rev=358485&r1=358484&r2=358485&view=diff
==============================================================================
--- incubator/activemq/trunk/activemq-core/src/main/java/org/activemq/broker/Main.java (original)
+++ incubator/activemq/trunk/activemq-core/src/main/java/org/activemq/broker/Main.java Wed
Dec 21 20:27:28 2005
@@ -18,25 +18,35 @@
  **/
 package org.activemq.broker;
 
-import javax.management.remote.JMXServiceURL;
-import javax.management.remote.JMXConnector;
-import javax.management.remote.JMXConnectorFactory;
-import javax.management.MBeanServerConnection;
-import javax.management.ObjectName;
-import javax.management.ObjectInstance;
-import javax.management.MBeanAttributeInfo;
-import java.util.*;
-import java.util.concurrent.CopyOnWriteArraySet;
 import java.io.File;
+import java.lang.reflect.Field;
+import java.lang.reflect.InvocationTargetException;
+import java.lang.reflect.Method;
+import java.net.JarURLConnection;
 import java.net.MalformedURLException;
-import java.net.URL;
-import java.net.URLClassLoader;
 import java.net.URI;
 import java.net.URISyntaxException;
-import java.net.JarURLConnection;
-import java.lang.reflect.Field;
-import java.lang.reflect.Method;
-import java.lang.reflect.InvocationTargetException;
+import java.net.URL;
+import java.net.URLClassLoader;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.Enumeration;
+import java.util.HashMap;
+import java.util.HashSet;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Map;
+import java.util.Properties;
+import java.util.Set;
+import java.util.StringTokenizer;
+
+import javax.management.MBeanAttributeInfo;
+import javax.management.MBeanServerConnection;
+import javax.management.ObjectInstance;
+import javax.management.ObjectName;
+import javax.management.remote.JMXConnector;
+import javax.management.remote.JMXConnectorFactory;
+import javax.management.remote.JMXServiceURL;
 
 /**
  * Main class that can bootstrap a ActiveMQ Broker. Handles command line
@@ -589,7 +599,7 @@
 
         // Construct the object name based on the query
         } else {
-            mbeans = new CopyOnWriteArraySet();
+            mbeans = new HashSet();
             Set queryKeys = queryObjects.keySet();
             for (Iterator i=queryKeys.iterator(); i.hasNext();) {
                 String objType = (String)i.next();



Mime
View raw message