[exo-jcr-commits] exo-jcr SVN: r1422 - jcr/branches/1.12.0-JBCCACHE/exo.jcr.component.core/src/test/java/org/exoplatform/services/jcr/lab/cluster/prepare.
do-not-reply at jboss.org
do-not-reply at jboss.org
Fri Jan 15 18:39:45 EST 2010
Author: pnedonosko
Date: 2010-01-15 18:39:45 -0500 (Fri, 15 Jan 2010)
New Revision: 1422
Modified:
jcr/branches/1.12.0-JBCCACHE/exo.jcr.component.core/src/test/java/org/exoplatform/services/jcr/lab/cluster/prepare/TestLoadIndexerWriter.java
Log:
EXOJCR-325: WORDS variable name/visibility fix
Modified: jcr/branches/1.12.0-JBCCACHE/exo.jcr.component.core/src/test/java/org/exoplatform/services/jcr/lab/cluster/prepare/TestLoadIndexerWriter.java
===================================================================
--- jcr/branches/1.12.0-JBCCACHE/exo.jcr.component.core/src/test/java/org/exoplatform/services/jcr/lab/cluster/prepare/TestLoadIndexerWriter.java 2010-01-15 17:09:54 UTC (rev 1421)
+++ jcr/branches/1.12.0-JBCCACHE/exo.jcr.component.core/src/test/java/org/exoplatform/services/jcr/lab/cluster/prepare/TestLoadIndexerWriter.java 2010-01-15 23:39:45 UTC (rev 1422)
@@ -44,7 +44,7 @@
private int threadCount = 1;
- private static final String[] words =
+ public static final String[] WORDS =
new String[]{"private", "branch", "final", "string", "logging", "bottle", "property", "node", "repository",
"exception", "cycle", "value", "index", "meaning", "strange", "words", "hello", "outline", "finest",
"basetest", "writer"};
@@ -110,8 +110,8 @@
while (!stop)
{
// get any word
- int i = random.nextInt(words.length);
- String word = words[i] + id; // "hello12" if thread#12 is creating it
+ int i = random.nextInt(WORDS.length);
+ String word = WORDS[i] + id; // "hello12" if thread#12 is creating it
// update statistic
updateStatistic(word);
// add actual node
More information about the exo-jcr-commits
mailing list