mirror of https://github.com/apache/lucene.git
- Indentation and compiler warning
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150445 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b6978c9213
commit
a7a55017e3
|
@ -18,7 +18,7 @@ package org.apache.lucene.demo.html;
|
|||
|
||||
import java.io.*;
|
||||
|
||||
class ParserThread extends Thread {
|
||||
class ParserThread extends Thread {
|
||||
HTMLParser parser;
|
||||
|
||||
ParserThread(HTMLParser p) {
|
||||
|
@ -28,21 +28,21 @@ class ParserThread extends Thread {
|
|||
public void run() { // convert pipeOut to pipeIn
|
||||
try {
|
||||
try { // parse document to pipeOut
|
||||
parser.HTMLDocument();
|
||||
parser.HTMLDocument();
|
||||
} catch (ParseException e) {
|
||||
System.out.println("Parse Aborted: " + e.getMessage());
|
||||
System.out.println("Parse Aborted: " + e.getMessage());
|
||||
} catch (TokenMgrError e) {
|
||||
System.out.println("Parse Aborted: " + e.getMessage());
|
||||
System.out.println("Parse Aborted: " + e.getMessage());
|
||||
} finally {
|
||||
parser.pipeOut.close();
|
||||
synchronized (parser) {
|
||||
parser.summary.setLength(parser.SUMMARY_LENGTH);
|
||||
parser.titleComplete = true;
|
||||
parser.notifyAll();
|
||||
}
|
||||
parser.pipeOut.close();
|
||||
synchronized (parser) {
|
||||
parser.summary.setLength(HTMLParser.SUMMARY_LENGTH);
|
||||
parser.titleComplete = true;
|
||||
parser.notifyAll();
|
||||
}
|
||||
}
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue