abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r416041 - in /incubator/abdera/java/trunk: core/src/main/java/org/apache/abdera/model/Base.java parser/src/main/java/org/apache/abdera/parser/stax/FOMDocument.java parser/src/main/java/org/apache/abdera/parser/stax/FOMElement.java
Date Wed, 21 Jun 2006 17:18:56 GMT
Author: jmsnell
Date: Wed Jun 21 10:18:55 2006
New Revision: 416041

URL: http://svn.apache.org/viewvc?rev=416041&view=rev
Log:
For Garrett.. Changing <T extends Base>T clone() to Object clone();

Modified:
    incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Base.java
    incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMDocument.java
    incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMElement.java

Modified: incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Base.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Base.java?rev=416041&r1=416040&r2=416041&view=diff
==============================================================================
--- incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Base.java (original)
+++ incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Base.java Wed Jun
21 10:18:55 2006
@@ -39,7 +39,7 @@
    */
   void writeTo(Writer writer) throws IOException;
   
-  <T extends Base>T clone();
+  Object clone();
   
   Factory getFactory();
   

Modified: incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMDocument.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMDocument.java?rev=416041&r1=416040&r2=416041&view=diff
==============================================================================
--- incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMDocument.java
(original)
+++ incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMDocument.java
Wed Jun 21 10:18:55 2006
@@ -148,7 +148,7 @@
   }
   
   @SuppressWarnings("unchecked")
-  public Document<T> clone() {
+  public Object clone() {
     T rootClone = (T)getRoot().clone();
     Document<T> doc = ((FOMFactory)factory).newDocument();
     doc.setRoot(rootClone);

Modified: incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMElement.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMElement.java?rev=416041&r1=416040&r2=416041&view=diff
==============================================================================
--- incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMElement.java
(original)
+++ incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMElement.java
Wed Jun 21 10:18:55 2006
@@ -493,10 +493,10 @@
   }
   
   @SuppressWarnings("unchecked")
-  public <T extends Base>T clone() {
+  public Object clone() {
     OMElement el = _create(this);
     _copyElement(this, el);
-    return (T) el;
+    return el;
 
   }
   



Mime
View raw message