abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From calav...@apache.org
Subject svn commit: r718902 - in /incubator/abdera/java/trunk: core/src/main/java/org/apache/abdera/model/ProcessingInstruction.java parser/src/main/java/org/apache/abdera/parser/stax/FOMProcessingInstruction.java
Date Wed, 19 Nov 2008 08:15:39 GMT
Author: calavera
Date: Wed Nov 19 00:15:39 2008
New Revision: 718902

URL: http://svn.apache.org/viewvc?rev=718902&view=rev
Log:
solves incompatibility problems due to having to methods with the same signature but that
return different types.

Modified:
    incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/ProcessingInstruction.java
    incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMProcessingInstruction.java

Modified: incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/ProcessingInstruction.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/ProcessingInstruction.java?rev=718902&r1=718901&r2=718902&view=diff
==============================================================================
--- incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/ProcessingInstruction.java
(original)
+++ incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/ProcessingInstruction.java
Wed Nov 19 00:15:39 2008
@@ -50,7 +50,7 @@
   /**
    * The PI target
    */
-  <T extends ProcessingInstruction>T setTarget(String target);
+  void setTarget(String target);
   
   /**
    * The PI text

Modified: incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMProcessingInstruction.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMProcessingInstruction.java?rev=718902&r1=718901&r2=718902&view=diff
==============================================================================
--- incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMProcessingInstruction.java
(original)
+++ incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMProcessingInstruction.java
Wed Nov 19 00:15:39 2008
@@ -72,9 +72,8 @@
     return w.toString();
   }
 
-  public <T extends ProcessingInstruction>T setTarget(String target) {
-    super.setTarget(target);
-    return (T)this;
+  public void setTarget(String target) {
+    super.setTarget(target);    
   }
   
 }



Mime
View raw message