abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r524804 - /incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMEntry.java
Date Mon, 02 Apr 2007 15:43:36 GMT
Author: jmsnell
Date: Mon Apr  2 08:43:35 2007
New Revision: 524804

URL: http://svn.apache.org/viewvc?view=rev&rev=524804
Log:
Fixing a bug on setContent(Element,mediatype) where the passed in element was not being properly
set as the child
of the atom:content element. Thanks to Brian Moseley for pointing out the problem

Modified:
    incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMEntry.java

Modified: incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMEntry.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMEntry.java?view=diff&rev=524804&r1=524803&r2=524804
==============================================================================
--- incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMEntry.java
(original)
+++ incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMEntry.java
Mon Apr  2 08:43:35 2007
@@ -231,7 +231,8 @@
    */
   public Content setContent(Element element, String mediaType) throws MimeTypeParseException
{
     FOMFactory factory = (FOMFactory) this.factory;
-    Content content = factory.newContent(new MimeType(mediaType), element);
+    Content content = factory.newContent(new MimeType(mediaType));
+    content.setValueElement(element);
     setContentElement(content);
     return content;
   }



Mime
View raw message