Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

mistake in last commit: computation of loops in ReversingTwoConsecutiveLetters

orbiterb69f22e9cab5
diff --git a/source/de/anomic/tools/DidYouMean.java b/source/de/anomic/tools/DidYouMean.java
index ddc7666e3..5013b44fe 100644
--- a/source/de/anomic/tools/DidYouMean.java
+++ b/source/de/anomic/tools/DidYouMean.java
@@ -52,12 +52,12 @@ public class DidYouMean {
this.ChangingOneLetter.start();
this.AddingOneLetter.start();
- this.ReversingTwoConsecutiveLetters.start();
this.DeletingOneLetter.start();
+ this.ReversingTwoConsecutiveLetters.start();
try {
- this.DeletingOneLetter.join(TIMEOUT);
this.ReversingTwoConsecutiveLetters.join(TIMEOUT);
+ this.DeletingOneLetter.join(TIMEOUT);
this.ChangingOneLetter.join(TIMEOUT);
this.AddingOneLetter.join(TIMEOUT);
} catch (InterruptedException e) {
@@ -120,7 +120,7 @@ public class DidYouMean {
}
private class ReversingTwoConsecutiveLetters extends Thread {
- // tests: alphabet.length * (len - 1)
+ // tests: (len - 1)
public void run() {
String s;
int count = 0;