You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by ot...@apache.org on 2004/08/17 22:58:11 UTC
cvs commit: jakarta-lucene/src/demo/org/apache/lucene/demo/html ParserThread.java
otis 2004/08/17 13:58:11
Modified: src/demo/org/apache/lucene/demo/html ParserThread.java
Log:
- Indentation and compiler warning
Revision Changes Path
1.3 +11 -11 jakarta-lucene/src/demo/org/apache/lucene/demo/html/ParserThread.java
Index: ParserThread.java
===================================================================
RCS file: /home/cvs/jakarta-lucene/src/demo/org/apache/lucene/demo/html/ParserThread.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- ParserThread.java 29 Mar 2004 22:48:00 -0000 1.2
+++ ParserThread.java 17 Aug 2004 20:58:11 -0000 1.3
@@ -18,7 +18,7 @@
import java.io.*;
-class ParserThread extends Thread {
+class ParserThread extends Thread {
HTMLParser parser;
ParserThread(HTMLParser p) {
@@ -28,21 +28,21 @@
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();
}
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-dev-help@jakarta.apache.org