Author: j16sdiz
Date: 2008-12-12 05:34:49 +0000 (Fri, 12 Dec 2008)
New Revision: 24236

Modified:
   trunk/plugins/XMLSpider/XMLSpider.java
Log:
simplify code

Modified: trunk/plugins/XMLSpider/XMLSpider.java
===================================================================
--- trunk/plugins/XMLSpider/XMLSpider.java      2008-12-12 05:22:09 UTC (rev 
24235)
+++ trunk/plugins/XMLSpider/XMLSpider.java      2008-12-12 05:34:49 UTC (rev 
24236)
@@ -1232,8 +1232,7 @@
                public void onText(String s, String type, URI baseURI){
                        Logger.debug(this, "onText on " + page.id + " (" + 
baseURI + ")");
 
-                       if((type != null) && (type.length() != 0) && 
type.toLowerCase().equals("title")
-                                       && (s != null) && (s.length() != 0) && 
(s.indexOf('\n') < 0)) {
+                       if ("title".equalsIgnoreCase(type) && (s != null) && 
(s.length() != 0) && (s.indexOf('\n') < 0)) {
                                /*
                                 * title of the page 
                                 */

_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs

Reply via email to