From 3670f4b3c9393d6063e3412cc4da88db73c36235 Mon Sep 17 00:00:00 2001 From: Simon Willnauer Date: Mon, 11 Jun 2012 07:04:57 +0000 Subject: [PATCH] fix typo - thanks dawid git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1348723 13f79535-47bb-0310-9956-ffa450edef68 --- .../index/TestDocumentsWriterStallControl.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lucene/core/src/test/org/apache/lucene/index/TestDocumentsWriterStallControl.java b/lucene/core/src/test/org/apache/lucene/index/TestDocumentsWriterStallControl.java index 52cf7cdd8ef..b837474f493 100644 --- a/lucene/core/src/test/org/apache/lucene/index/TestDocumentsWriterStallControl.java +++ b/lucene/core/src/test/org/apache/lucene/index/TestDocumentsWriterStallControl.java @@ -127,7 +127,7 @@ public class TestDocumentsWriterStallControl extends LuceneTestCase { int numStallers = atLeast(1); int numReleasers = atLeast(1); int numWaiters = atLeast(1); - final Synchonizer sync = new Synchonizer(numStallers + numReleasers, numStallers + numReleasers+numWaiters); + final Synchronizer sync = new Synchronizer(numStallers + numReleasers, numStallers + numReleasers+numWaiters); Thread[] threads = new Thread[numReleasers + numStallers + numWaiters]; List exceptions = Collections.synchronizedList(new ArrayList()); for (int i = 0; i < numReleasers; i++) { @@ -229,14 +229,14 @@ public class TestDocumentsWriterStallControl extends LuceneTestCase { } public static class Waiter extends Thread { - private Synchonizer sync; + private Synchronizer sync; private DocumentsWriterStallControl ctrl; private AtomicBoolean checkPoint; private AtomicBoolean stop; private List exceptions; public Waiter(AtomicBoolean stop, AtomicBoolean checkPoint, - DocumentsWriterStallControl ctrl, Synchonizer sync, + DocumentsWriterStallControl ctrl, Synchronizer sync, List exceptions) { super("waiter"); this.stop = stop; @@ -268,7 +268,7 @@ public class TestDocumentsWriterStallControl extends LuceneTestCase { public static class Updater extends Thread { - private Synchonizer sync; + private Synchronizer sync; private DocumentsWriterStallControl ctrl; private AtomicBoolean checkPoint; private AtomicBoolean stop; @@ -276,7 +276,7 @@ public class TestDocumentsWriterStallControl extends LuceneTestCase { private List exceptions; public Updater(AtomicBoolean stop, AtomicBoolean checkPoint, - DocumentsWriterStallControl ctrl, Synchonizer sync, + DocumentsWriterStallControl ctrl, Synchronizer sync, boolean release, List exceptions) { super("updater"); this.stop = stop; @@ -400,12 +400,12 @@ public class TestDocumentsWriterStallControl extends LuceneTestCase { } - private static final class Synchonizer { + private static final class Synchronizer { volatile CountDownLatch waiter; volatile CountDownLatch updateJoin; volatile CountDownLatch leftCheckpoint; - public Synchonizer(int numUpdater, int numThreads) { + public Synchronizer(int numUpdater, int numThreads) { reset(numUpdater, numThreads); }