From 498d5824239db6c5e98eded26a36ad09b2d5ca62 Mon Sep 17 00:00:00 2001 From: Daniel Naber Date: Mon, 26 Nov 2007 15:48:51 +0000 Subject: [PATCH] remove unused variables; typo fixes in javadoc git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@598317 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/lucene/search/BooleanQuery.java | 9 ++++----- src/java/org/apache/lucene/store/LockVerifyServer.java | 2 -- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/src/java/org/apache/lucene/search/BooleanQuery.java b/src/java/org/apache/lucene/search/BooleanQuery.java index 3d662af0834..3332734dba0 100644 --- a/src/java/org/apache/lucene/search/BooleanQuery.java +++ b/src/java/org/apache/lucene/search/BooleanQuery.java @@ -114,21 +114,21 @@ public class BooleanQuery extends Query { /** * Specifies a minimum number of the optional BooleanClauses - * which must be satisifed. + * which must be satisfied. * *

- * By default no optional clauses are neccessary for a match + * By default no optional clauses are necessary for a match * (unless there are no required clauses). If this method is used, * then the specified number of clauses is required. *

*

- * Use of this method is totally independant of specifying that + * Use of this method is totally independent of specifying that * any specific clauses are required (or prohibited). This number will * only be compared against the number of matching optional clauses. *

*

* EXPERT NOTE: Using this method may force collecting docs in order, - * regardless of wether setAllowDocsOutOfOrder(true) has been called. + * regardless of whether setAllowDocsOutOfOrder(true) has been called. *

* * @param min the number of optional clauses that must match @@ -212,7 +212,6 @@ public class BooleanQuery extends Query { public void normalize(float norm) { norm *= getBoost(); // incorporate boost for (int i = 0 ; i < weights.size(); i++) { - BooleanClause c = (BooleanClause)clauses.get(i); Weight w = (Weight)weights.elementAt(i); // normalize all clauses, (even if prohibited in case of side affects) w.normalize(norm); diff --git a/src/java/org/apache/lucene/store/LockVerifyServer.java b/src/java/org/apache/lucene/store/LockVerifyServer.java index 2351df8cb35..acd02599488 100644 --- a/src/java/org/apache/lucene/store/LockVerifyServer.java +++ b/src/java/org/apache/lucene/store/LockVerifyServer.java @@ -55,8 +55,6 @@ public class LockVerifyServer { int lockedID = 0; long startTime = System.currentTimeMillis(); - char[] message = new char[3]; - while(true) { Socket cs = s.accept(); OutputStream out = cs.getOutputStream();