lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From o...@apache.org
Subject cvs commit: jakarta-lucene/src/demo/org/apache/lucene/demo/html ParserThread.java
Date Tue, 17 Aug 2004 20:58:11 GMT
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


Mime
View raw message