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
This commit is contained in:
Daniel Naber 2007-11-26 15:48:51 +00:00
parent e729f9dee5
commit 498d582423
2 changed files with 4 additions and 7 deletions

View File

@ -114,21 +114,21 @@ public class BooleanQuery extends Query {
/** /**
* Specifies a minimum number of the optional BooleanClauses * Specifies a minimum number of the optional BooleanClauses
* which must be satisifed. * which must be satisfied.
* *
* <p> * <p>
* 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, * (unless there are no required clauses). If this method is used,
* then the specified number of clauses is required. * then the specified number of clauses is required.
* </p> * </p>
* <p> * <p>
* 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 * any specific clauses are required (or prohibited). This number will
* only be compared against the number of matching optional clauses. * only be compared against the number of matching optional clauses.
* </p> * </p>
* <p> * <p>
* EXPERT NOTE: Using this method may force collecting docs in order, * 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.
* </p> * </p>
* *
* @param min the number of optional clauses that must match * @param min the number of optional clauses that must match
@ -212,7 +212,6 @@ public class BooleanQuery extends Query {
public void normalize(float norm) { public void normalize(float norm) {
norm *= getBoost(); // incorporate boost norm *= getBoost(); // incorporate boost
for (int i = 0 ; i < weights.size(); i++) { for (int i = 0 ; i < weights.size(); i++) {
BooleanClause c = (BooleanClause)clauses.get(i);
Weight w = (Weight)weights.elementAt(i); Weight w = (Weight)weights.elementAt(i);
// normalize all clauses, (even if prohibited in case of side affects) // normalize all clauses, (even if prohibited in case of side affects)
w.normalize(norm); w.normalize(norm);

View File

@ -55,8 +55,6 @@ public class LockVerifyServer {
int lockedID = 0; int lockedID = 0;
long startTime = System.currentTimeMillis(); long startTime = System.currentTimeMillis();
char[] message = new char[3];
while(true) { while(true) {
Socket cs = s.accept(); Socket cs = s.accept();
OutputStream out = cs.getOutputStream(); OutputStream out = cs.getOutputStream();