[jboss-cvs] JBossCache/tests/functional/org/jboss/cache/eviction ...
Manik Surtani
manik at jboss.org
Mon Jun 11 08:58:16 EDT 2007
User: msurtani
Date: 07/06/11 08:58:16
Modified: tests/functional/org/jboss/cache/eviction
ElementSizePolicyTest.java
ConcurrentEvictionTest.java
Log:
Reduce Java5 related ide generated warnings
Revision Changes Path
1.15 +3 -3 JBossCache/tests/functional/org/jboss/cache/eviction/ElementSizePolicyTest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: ElementSizePolicyTest.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/eviction/ElementSizePolicyTest.java,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -b -r1.14 -r1.15
--- ElementSizePolicyTest.java 7 Feb 2007 22:06:39 -0000 1.14
+++ ElementSizePolicyTest.java 11 Jun 2007 12:58:15 -0000 1.15
@@ -75,7 +75,7 @@
{
for (int k = 0; k < i; k++)
{
- cache.put(fqn, new Integer(k), Integer.toString(k));
+ cache.put(fqn, k, Integer.toString(k));
}
}
}
@@ -120,10 +120,10 @@
{
String str = rootStr + Integer.toString(i);
Fqn fqn = Fqn.fromString(str);
- cache.put(fqn, new Integer(i), str);
+ cache.put(fqn, i, str);
for (int k = 0; k < i; k++)
{
- cache.put(fqn, new Integer(k), str);
+ cache.put(fqn, k, str);
}
}
1.12 +3 -3 JBossCache/tests/functional/org/jboss/cache/eviction/ConcurrentEvictionTest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: ConcurrentEvictionTest.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/eviction/ConcurrentEvictionTest.java,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -b -r1.11 -r1.12
--- ConcurrentEvictionTest.java 23 May 2007 10:28:54 -0000 1.11
+++ ConcurrentEvictionTest.java 11 Jun 2007 12:58:15 -0000 1.12
@@ -21,7 +21,7 @@
* Tests cache behavior in the presence of concurrent passivation.
*
* @author Brian Stansberry
- * @version $Revision: 1.11 $
+ * @version $Revision: 1.12 $
*/
public class ConcurrentEvictionTest extends TestCase
{
@@ -74,7 +74,7 @@
// region's maxNodes so we know eviction will kick in
for (int i = 0; i < 1000; i++)
{
- cache_.put(new Fqn(base, i / 100), new Integer(i), "value");
+ cache_.put(new Fqn(base, i / 100), i, "value");
}
// Loop for long enough to have 5 runs of the eviction thread
More information about the jboss-cvs-commits
mailing list