[jboss-cvs] JBossCache/tests/functional/org/jboss/cache/pojo/passivation ...
Manik Surtani
manik at jboss.org
Wed May 23 06:28:49 EDT 2007
User: msurtani
Date: 07/05/23 06:28:49
Modified: tests/functional/org/jboss/cache/pojo/passivation
RandomString.java ReplicatedTest.java
Log:
Initiated a bunch of performance fixes, including replacing CopyOnWriteArraySets with org.jboss.cache.util.concurrent.ConcurrentHashSet.
Also ran an imports optimiser on the code base - there were a lot of unused imports floating about.
Revision Changes Path
1.2 +26 -25 JBossCache/tests/functional/org/jboss/cache/pojo/passivation/RandomString.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: RandomString.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/pojo/passivation/RandomString.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- RandomString.java 13 Jan 2007 15:55:13 -0000 1.1
+++ RandomString.java 23 May 2007 10:28:49 -0000 1.2
@@ -1,8 +1,9 @@
package org.jboss.cache.pojo.passivation;
-import java.util.*;
+import java.util.Random;
-public class RandomString {
+public class RandomString
+{
private static Random rn = new Random(12);
@@ -20,7 +21,7 @@
int n = rand(lo, hi);
byte b[] = new byte[n];
for (int i = 0; i < n; i++)
- b[i] = (byte)rand('a', 'z');
+ b[i] = (byte) rand('a', 'z');
return new String(b, 0);
}
1.4 +5 -6 JBossCache/tests/functional/org/jboss/cache/pojo/passivation/ReplicatedTest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: ReplicatedTest.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/pojo/passivation/ReplicatedTest.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- ReplicatedTest.java 16 May 2007 18:29:18 -0000 1.3
+++ ReplicatedTest.java 23 May 2007 10:28:49 -0000 1.4
@@ -22,8 +22,6 @@
package org.jboss.cache.pojo.passivation;
-import java.util.Map;
-
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
@@ -31,13 +29,14 @@
import org.apache.commons.logging.LogFactory;
import org.jboss.cache.AbstractCacheListener;
import org.jboss.cache.Fqn;
-import org.jboss.cache.CacheListener.ModificationType;
import org.jboss.cache.pojo.PojoCache;
import org.jboss.cache.pojo.PojoCacheFactory;
import org.jboss.cache.pojo.test.Address;
import org.jboss.cache.pojo.test.Link;
import org.jboss.cache.pojo.test.Person;
+import java.util.Map;
+
/**
* Replicated passivation test.
*
More information about the jboss-cvs-commits
mailing list