abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r488501 - in /incubator/abdera/java/branches/0.2.1-incubating/parser/src/main/java/org/apache/abdera/parser/stax: FOMContent.java FOMText.java
Date Tue, 19 Dec 2006 01:56:04 GMT
Author: jmsnell
Date: Mon Dec 18 17:56:04 2006
New Revision: 488501

URL: http://svn.apache.org/viewvc?view=rev&rev=488501
Log:
Fix for https://issues.apache.org/jira/browse/ABDERA-30

Modified:
    incubator/abdera/java/branches/0.2.1-incubating/parser/src/main/java/org/apache/abdera/parser/stax/FOMContent.java
    incubator/abdera/java/branches/0.2.1-incubating/parser/src/main/java/org/apache/abdera/parser/stax/FOMText.java

Modified: incubator/abdera/java/branches/0.2.1-incubating/parser/src/main/java/org/apache/abdera/parser/stax/FOMContent.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/branches/0.2.1-incubating/parser/src/main/java/org/apache/abdera/parser/stax/FOMContent.java?view=diff&rev=488501&r1=488500&r2=488501
==============================================================================
--- incubator/abdera/java/branches/0.2.1-incubating/parser/src/main/java/org/apache/abdera/parser/stax/FOMContent.java
(original)
+++ incubator/abdera/java/branches/0.2.1-incubating/parser/src/main/java/org/apache/abdera/parser/stax/FOMContent.java
Mon Dec 18 17:56:04 2006
@@ -26,6 +26,7 @@
 import org.apache.abdera.model.Content;
 import org.apache.abdera.model.Div;
 import org.apache.abdera.model.Element;
+import org.apache.abdera.parser.stax.FOMContent;
 import org.apache.abdera.util.Constants;
 import org.apache.abdera.util.iri.IRI;
 import org.apache.abdera.util.iri.IRISyntaxException;
@@ -57,6 +58,7 @@
     OMFactory factory)
       throws OMException {
     super(name, namespace, parent, factory);
+    init(type);
   }
   
   public FOMContent(
@@ -337,5 +339,12 @@
         return el.getAttributeValue(LANG);
     }
     return super.getLanguage();
+  }
+  
+  @Override
+  public Object clone() {
+    FOMContent content = (FOMContent) super.clone();
+    content.type = this.type;
+    return content;
   }
 }

Modified: incubator/abdera/java/branches/0.2.1-incubating/parser/src/main/java/org/apache/abdera/parser/stax/FOMText.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/branches/0.2.1-incubating/parser/src/main/java/org/apache/abdera/parser/stax/FOMText.java?view=diff&rev=488501&r1=488500&r2=488501
==============================================================================
--- incubator/abdera/java/branches/0.2.1-incubating/parser/src/main/java/org/apache/abdera/parser/stax/FOMText.java
(original)
+++ incubator/abdera/java/branches/0.2.1-incubating/parser/src/main/java/org/apache/abdera/parser/stax/FOMText.java
Mon Dec 18 17:56:04 2006
@@ -22,6 +22,7 @@
 import org.apache.abdera.model.Div;
 import org.apache.abdera.model.Element;
 import org.apache.abdera.model.Text;
+import org.apache.abdera.parser.stax.FOMText;
 import org.apache.abdera.util.Constants;
 import org.apache.abdera.util.iri.IRI;
 import org.apache.abdera.util.iri.IRISyntaxException;
@@ -216,4 +217,11 @@
     return super.getLanguage();
   }
 
+
+  @Override
+  public Object clone() {
+    FOMText text = (FOMText) super.clone();
+    text.type = type;
+    return text;
+  }
 }



Mime
View raw message