abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r414973 - /incubator/abdera/java/trunk/parser/src/test/java/org/apache/abdera/test/parser/stax/FOMTest.java
Date Sat, 17 Jun 2006 00:31:08 GMT
Author: jmsnell
Date: Fri Jun 16 17:31:08 2006
New Revision: 414973

URL: http://svn.apache.org/viewvc?rev=414973&view=rev
Log:
Fixing the ClassCastException in the FOMTest

Modified:
    incubator/abdera/java/trunk/parser/src/test/java/org/apache/abdera/test/parser/stax/FOMTest.java

Modified: incubator/abdera/java/trunk/parser/src/test/java/org/apache/abdera/test/parser/stax/FOMTest.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/parser/src/test/java/org/apache/abdera/test/parser/stax/FOMTest.java?rev=414973&r1=414972&r2=414973&view=diff
==============================================================================
--- incubator/abdera/java/trunk/parser/src/test/java/org/apache/abdera/test/parser/stax/FOMTest.java
(original)
+++ incubator/abdera/java/trunk/parser/src/test/java/org/apache/abdera/test/parser/stax/FOMTest.java
Fri Jun 16 17:31:08 2006
@@ -26,6 +26,7 @@
 import org.apache.abdera.factory.Factory;
 import org.apache.abdera.filter.ParseFilter;
 import org.apache.abdera.filter.TextFilter;
+import org.apache.abdera.model.Base;
 import org.apache.abdera.model.Document;
 import org.apache.abdera.model.Element;
 import org.apache.abdera.model.Entry;
@@ -181,7 +182,7 @@
       public String filterText(String text, Element parent) {
         ExtensionElement ee = (ExtensionElement) parent;
         QName qname = ee.getQName();
-        Element elparent = parent.getParentElement();
+        Base elparent = parent.getParentElement();
         if (Constants.NAME.equals(qname)) {
           text = "Jane Doe";
         } else if (Constants.TITLE.equals(qname) && elparent instanceof Entry) {



Mime
View raw message