[jboss-cvs] JBossAS SVN: r67598 - trunk/jmx/src/main/test/stress.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Thu Nov 29 05:40:07 EST 2007
Author: adrian at jboss.org
Date: 2007-11-29 05:40:07 -0500 (Thu, 29 Nov 2007)
New Revision: 67598
Modified:
trunk/jmx/src/main/test/stress/ConcurrencyTestCase.java
Log:
Changes in Java6: Correct the parameter type for ObjectName construction
Modified: trunk/jmx/src/main/test/stress/ConcurrencyTestCase.java
===================================================================
--- trunk/jmx/src/main/test/stress/ConcurrencyTestCase.java 2007-11-29 10:35:29 UTC (rev 67597)
+++ trunk/jmx/src/main/test/stress/ConcurrencyTestCase.java 2007-11-29 10:40:07 UTC (rev 67598)
@@ -21,6 +21,7 @@
*/
package test.stress;
+import java.util.Hashtable;
import java.util.Random;
import java.util.Properties;
import java.util.List;
@@ -155,7 +156,7 @@
private int minID;
private int maxID;
private String domain;
- private Properties nameProps = new Properties();
+ private Hashtable<String, String> nameProps = new Hashtable<String, String>();
private Throwable ex;
MBeanAdder(int minID, int maxID)
@@ -166,14 +167,14 @@
public void run()
{
System.out.println("MBeanAdder, min="+minID+", max="+maxID+", starting");
- nameProps.setProperty("type", "simple");
+ nameProps.put("type", "simple");
try
{
for(int n = 0; n < N; n ++)
{
int id = minID + n % maxID;
domain = "jboss.test."+ rnd.nextInt(NDomains);
- nameProps.setProperty("id", "#"+id);
+ nameProps.put("id", "#"+id);
addMBean();
}
}
More information about the jboss-cvs-commits
mailing list