abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From antel...@apache.org
Subject svn commit: r956475 - /abdera/java/trunk/parser/src/test/java/org/apache/abdera/test/parser/stax/XhtmlTest.java
Date Mon, 21 Jun 2010 07:31:42 GMT
Author: antelder
Date: Mon Jun 21 07:31:41 2010
New Revision: 956475

URL: http://svn.apache.org/viewvc?rev=956475&view=rev
Log:
Add an explicit cast to fix a compile error when building with JDK 1.5

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

Modified: abdera/java/trunk/parser/src/test/java/org/apache/abdera/test/parser/stax/XhtmlTest.java
URL: http://svn.apache.org/viewvc/abdera/java/trunk/parser/src/test/java/org/apache/abdera/test/parser/stax/XhtmlTest.java?rev=956475&r1=956474&r2=956475&view=diff
==============================================================================
--- abdera/java/trunk/parser/src/test/java/org/apache/abdera/test/parser/stax/XhtmlTest.java
(original)
+++ abdera/java/trunk/parser/src/test/java/org/apache/abdera/test/parser/stax/XhtmlTest.java
Mon Jun 21 07:31:41 2010
@@ -57,7 +57,7 @@ public class XhtmlTest {
         assertNotNull(entry.getContent());
         assertEquals(Content.Type.XHTML, entry.getContentType());
         Element el = entry.getContentElement().getValueElement();
-        char umlaut = el.getFirstChild().getText().charAt(0);
+        char umlaut = ((Element)el.getFirstChild()).getText().charAt(0);
         // hexadecimal value of Ä is U+00C4
         assertEquals("c4", Integer.toHexString(umlaut));
     }



Mime
View raw message