lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mharw...@apache.org
Subject svn commit: r667294 - /lucene/java/trunk/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/DOMUtils.java
Date Thu, 12 Jun 2008 23:38:40 GMT
Author: mharwood
Date: Thu Jun 12 16:38:39 2008
New Revision: 667294

URL: http://svn.apache.org/viewvc?rev=667294&view=rev
Log:
Fixed bug parsing boolean attributes. Boolean.getBoolean(s) was being used by mistake which
reads a system property with name of s - instead need to parse s as string value of "true"
or "false".

Modified:
    lucene/java/trunk/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/DOMUtils.java

Modified: lucene/java/trunk/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/DOMUtils.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/DOMUtils.java?rev=667294&r1=667293&r2=667294&view=diff
==============================================================================
--- lucene/java/trunk/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/DOMUtils.java
(original)
+++ lucene/java/trunk/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/DOMUtils.java
Thu Jun 12 16:38:39 2008
@@ -186,7 +186,7 @@
 		{
 			return deflt;
 		}
-		return Boolean.getBoolean(result);
+		return Boolean.valueOf(result).booleanValue();
 	}	
 
 	/* Returns text of node and all child nodes - without markup */



Mime
View raw message