lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From markrmil...@apache.org
Subject svn commit: r812249 - in /lucene/java/trunk/src/demo/org/apache/lucene/demo/html: HTMLParser.java HTMLParser.jj
Date Mon, 07 Sep 2009 18:32:52 GMT
Author: markrmiller
Date: Mon Sep  7 18:32:52 2009
New Revision: 812249

URL: http://svn.apache.org/viewvc?rev=812249&view=rev
Log:
LUCENE-1892: Demo HTMLParser compares StringBuffer to an empty String with .equals

Modified:
    lucene/java/trunk/src/demo/org/apache/lucene/demo/html/HTMLParser.java
    lucene/java/trunk/src/demo/org/apache/lucene/demo/html/HTMLParser.jj

Modified: lucene/java/trunk/src/demo/org/apache/lucene/demo/html/HTMLParser.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/demo/org/apache/lucene/demo/html/HTMLParser.java?rev=812249&r1=812248&r2=812249&view=diff
==============================================================================
--- lucene/java/trunk/src/demo/org/apache/lucene/demo/html/HTMLParser.java (original)
+++ lucene/java/trunk/src/demo/org/apache/lucene/demo/html/HTMLParser.java Mon Sep  7 18:32:52
2009
@@ -128,7 +128,7 @@
       title.append(text);
     else {
       addToSummary(text);
-      if (!titleComplete && !title.equals("")) {  // finished title
+      if (!titleComplete && !(title.length() == 0)) {  // finished title
         synchronized(this) {
           titleComplete = true;                   // tell waiting threads
           notifyAll();

Modified: lucene/java/trunk/src/demo/org/apache/lucene/demo/html/HTMLParser.jj
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/demo/org/apache/lucene/demo/html/HTMLParser.jj?rev=812249&r1=812248&r2=812249&view=diff
==============================================================================
--- lucene/java/trunk/src/demo/org/apache/lucene/demo/html/HTMLParser.jj (original)
+++ lucene/java/trunk/src/demo/org/apache/lucene/demo/html/HTMLParser.jj Mon Sep  7 18:32:52
2009
@@ -155,7 +155,7 @@
       title.append(text);
     else {
       addToSummary(text);
-      if (!titleComplete && !title.equals("")) {  // finished title
+      if (!titleComplete && !(title.length() == 0)) {  // finished title
 	synchronized(this) {
 	  titleComplete = true;			  // tell waiting threads
 	  notifyAll();



Mime
View raw message