abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r1176113 - in /abdera/abdera2/activities/src/main/java/org/apache/abdera2/activities: extra/ model/ protocol/ protocol/basic/
Date Mon, 26 Sep 2011 22:52:12 GMT
Author: jmsnell
Date: Mon Sep 26 22:52:11 2011
New Revision: 1176113

URL: http://svn.apache.org/viewvc?rev=1176113&view=rev
Log: (empty)

Modified:
    abdera/abdera2/activities/src/main/java/org/apache/abdera2/activities/extra/ASContext.java
    abdera/abdera2/activities/src/main/java/org/apache/abdera2/activities/extra/BookObject.java
    abdera/abdera2/activities/src/main/java/org/apache/abdera2/activities/extra/CreativeWork.java
    abdera/abdera2/activities/src/main/java/org/apache/abdera2/activities/extra/ExtendedEventObject.java
    abdera/abdera2/activities/src/main/java/org/apache/abdera2/activities/extra/MovieObject.java
    abdera/abdera2/activities/src/main/java/org/apache/abdera2/activities/extra/OfferObject.java
    abdera/abdera2/activities/src/main/java/org/apache/abdera2/activities/extra/TvEpisodeObject.java
    abdera/abdera2/activities/src/main/java/org/apache/abdera2/activities/extra/TvSeasonObject.java
    abdera/abdera2/activities/src/main/java/org/apache/abdera2/activities/extra/TvSeriesObject.java
    abdera/abdera2/activities/src/main/java/org/apache/abdera2/activities/extra/VersionObject.java
    abdera/abdera2/activities/src/main/java/org/apache/abdera2/activities/model/ASObject.java
    abdera/abdera2/activities/src/main/java/org/apache/abdera2/activities/model/IO.java
    abdera/abdera2/activities/src/main/java/org/apache/abdera2/activities/protocol/AbstractActivitiesProvider.java
    abdera/abdera2/activities/src/main/java/org/apache/abdera2/activities/protocol/AbstractActivitiesWorkspaceProvider.java
    abdera/abdera2/activities/src/main/java/org/apache/abdera2/activities/protocol/basic/BasicAdapter.java

Modified: abdera/abdera2/activities/src/main/java/org/apache/abdera2/activities/extra/ASContext.java
URL: http://svn.apache.org/viewvc/abdera/abdera2/activities/src/main/java/org/apache/abdera2/activities/extra/ASContext.java?rev=1176113&r1=1176112&r2=1176113&view=diff
==============================================================================
--- abdera/abdera2/activities/src/main/java/org/apache/abdera2/activities/extra/ASContext.java
(original)
+++ abdera/abdera2/activities/src/main/java/org/apache/abdera2/activities/extra/ASContext.java
Mon Sep 26 22:52:11 2011
@@ -26,8 +26,9 @@ public final class ASContext 
     this.base = base;
   }
   
+  @SuppressWarnings("unchecked")
   public <T> T resolve(String var) {
-    return base.getProperty(var);
+    return (T)base.getProperty(var);
   }
 
   public void clear() {

Modified: abdera/abdera2/activities/src/main/java/org/apache/abdera2/activities/extra/BookObject.java
URL: http://svn.apache.org/viewvc/abdera/abdera2/activities/src/main/java/org/apache/abdera2/activities/extra/BookObject.java?rev=1176113&r1=1176112&r2=1176113&view=diff
==============================================================================
--- abdera/abdera2/activities/src/main/java/org/apache/abdera2/activities/extra/BookObject.java
(original)
+++ abdera/abdera2/activities/src/main/java/org/apache/abdera2/activities/extra/BookObject.java
Mon Sep 26 22:52:11 2011
@@ -18,8 +18,9 @@ public class BookObject extends Creative
     setDisplayName(displayName);
   }
   
+  @SuppressWarnings("unchecked")
   public <T extends ASObject>T getFormat() {
-    return getProperty("format");
+    return (T)getProperty("format");
   }
   
   public void setFormat(ASObject format) {
@@ -50,8 +51,9 @@ public class BookObject extends Creative
     setProperty("pageCount", pageCount);
   }
 
+  @SuppressWarnings("unchecked")
   public <T extends ASObject>T getIllustrator() {
-    return getProperty("illustrator");
+    return (T)getProperty("illustrator");
   }
   
   public void setIllustrator(ASObject illustrator) {

Modified: abdera/abdera2/activities/src/main/java/org/apache/abdera2/activities/extra/CreativeWork.java
URL: http://svn.apache.org/viewvc/abdera/abdera2/activities/src/main/java/org/apache/abdera2/activities/extra/CreativeWork.java?rev=1176113&r1=1176112&r2=1176113&view=diff
==============================================================================
--- abdera/abdera2/activities/src/main/java/org/apache/abdera2/activities/extra/CreativeWork.java
(original)
+++ abdera/abdera2/activities/src/main/java/org/apache/abdera2/activities/extra/CreativeWork.java
Mon Sep 26 22:52:11 2011
@@ -5,6 +5,7 @@ import org.apache.abdera2.activities.mod
 /**
  * Abstract base class for several extension ASObject types
  */
+@SuppressWarnings("unchecked")
 public abstract class CreativeWork extends ASObject {
 
   private static final long serialVersionUID = -178336535850006357L;
@@ -16,7 +17,7 @@ public abstract class CreativeWork exten
   }
   
   public <T extends ASObject>T getAbout() {
-    return getProperty("about");
+    return (T)getProperty("about");
   }
   
   public void setAbout(ASObject about) {
@@ -24,7 +25,7 @@ public abstract class CreativeWork exten
   }
   
   public <T extends ASObject>T getGenre() {
-    return getProperty("genre");
+    return (T)getProperty("genre");
   }
   
   public void setGenre(ASObject genre) {
@@ -32,7 +33,7 @@ public abstract class CreativeWork exten
   }
   
   public <T extends ASObject>T getPublisher() {
-    return getProperty("publisher");
+    return (T)getProperty("publisher");
   }
   
   public void setPublisher(ASObject publisher) {
@@ -40,7 +41,7 @@ public abstract class CreativeWork exten
   }
   
   public <T extends ASObject>T getProvider() {
-    return getProperty("provider");
+    return (T)getProperty("provider");
   }
   
   public void setProvider(ASObject provider) {
@@ -48,7 +49,7 @@ public abstract class CreativeWork exten
   }
   
   public <T extends ASObject>T getContributor() {
-    return getProperty("contributor");
+    return (T)getProperty("contributor");
   }
   
   public void setContributor(ASObject contributor) {
@@ -56,7 +57,7 @@ public abstract class CreativeWork exten
   }
   
   public <T extends ASObject>T getEditor() {
-    return getProperty("editor");
+    return (T)getProperty("editor");
   }
   
   public void setEditor(ASObject editor) {

Modified: abdera/abdera2/activities/src/main/java/org/apache/abdera2/activities/extra/ExtendedEventObject.java
URL: http://svn.apache.org/viewvc/abdera/abdera2/activities/src/main/java/org/apache/abdera2/activities/extra/ExtendedEventObject.java?rev=1176113&r1=1176112&r2=1176113&view=diff
==============================================================================
--- abdera/abdera2/activities/src/main/java/org/apache/abdera2/activities/extra/ExtendedEventObject.java
(original)
+++ abdera/abdera2/activities/src/main/java/org/apache/abdera2/activities/extra/ExtendedEventObject.java
Mon Sep 26 22:52:11 2011
@@ -9,6 +9,7 @@ import org.apache.abdera2.activities.mod
  * define their own objectType names using the Name annotation
  * (@see org.apache.abdera2.common.anno.Name). 
  */
+@SuppressWarnings("unchecked")
 public abstract class ExtendedEventObject extends EventObject {
 
   private static final long serialVersionUID = 8368535995814591315L;
@@ -22,7 +23,7 @@ public abstract class ExtendedEventObjec
   }
   
   public <T extends ASObject>T getOffers() {
-    return getProperty("offers");
+    return (T)getProperty("offers");
   }
   
   public void setOffers(ASObject offers) {
@@ -30,7 +31,7 @@ public abstract class ExtendedEventObjec
   }
   
   public <T extends ASObject>T getSubEvents() {
-    return getProperty("subEvents");
+    return (T)getProperty("subEvents");
   }
   
   public void setSubEvents(ASObject subEvents) {
@@ -38,7 +39,7 @@ public abstract class ExtendedEventObjec
   }
   
   public <T extends ASObject>T getSuperEvent() {
-    return getProperty("superEvent");
+    return (T)getProperty("superEvent");
   }
   
   public void setSuperEvent(ASObject superEvent) {
@@ -46,7 +47,7 @@ public abstract class ExtendedEventObjec
   }
   
   public <T extends ASObject>T getPerformers() {
-    return getProperty("performers");
+    return (T)getProperty("performers");
   }
   
   public void setPerformers(ASObject performers) {

Modified: abdera/abdera2/activities/src/main/java/org/apache/abdera2/activities/extra/MovieObject.java
URL: http://svn.apache.org/viewvc/abdera/abdera2/activities/src/main/java/org/apache/abdera2/activities/extra/MovieObject.java?rev=1176113&r1=1176112&r2=1176113&view=diff
==============================================================================
--- abdera/abdera2/activities/src/main/java/org/apache/abdera2/activities/extra/MovieObject.java
(original)
+++ abdera/abdera2/activities/src/main/java/org/apache/abdera2/activities/extra/MovieObject.java
Mon Sep 26 22:52:11 2011
@@ -16,6 +16,7 @@ import org.apache.abdera2.common.date.Du
   @Property(name="preview",to=MediaLink.class),
   @Property(name="duration",to=Duration.class)
 })
+@SuppressWarnings("unchecked")
 public class MovieObject extends CreativeWork {
 
   private static final long serialVersionUID = -1551754630697817614L;
@@ -27,7 +28,7 @@ public class MovieObject extends Creativ
   }
   
   public <T extends ASObject>T getActors() {
-    return getProperty("actors");
+    return (T)getProperty("actors");
   }
   
   public void setActors(ASObject actors) {
@@ -35,7 +36,7 @@ public class MovieObject extends Creativ
   }
   
   public <T extends ASObject>T getDirector() {
-    return getProperty("director");
+    return (T)getProperty("director");
   }
   
   public void setDirector(ASObject director) {
@@ -51,7 +52,7 @@ public class MovieObject extends Creativ
   }
   
   public <T extends ASObject>T getMusicBy() {
-    return getProperty("musicBy");
+    return (T)getProperty("musicBy");
   }
   
   public void setMusicBy(ASObject musicBy) {
@@ -59,7 +60,7 @@ public class MovieObject extends Creativ
   }
   
   public <T extends ASObject>T getProducer() {
-    return getProperty("producer");
+    return (T)getProperty("producer");
   }
   
   public void setProducer(ASObject producer) {
@@ -67,7 +68,7 @@ public class MovieObject extends Creativ
   }
   
   public <T extends ASObject>T getProductionCompany() {
-    return getProperty("productionCompany");
+    return (T)getProperty("productionCompany");
   }
   
   public void setProductionCompany(ASObject org) {

Modified: abdera/abdera2/activities/src/main/java/org/apache/abdera2/activities/extra/OfferObject.java
URL: http://svn.apache.org/viewvc/abdera/abdera2/activities/src/main/java/org/apache/abdera2/activities/extra/OfferObject.java?rev=1176113&r1=1176112&r2=1176113&view=diff
==============================================================================
--- abdera/abdera2/activities/src/main/java/org/apache/abdera2/activities/extra/OfferObject.java
(original)
+++ abdera/abdera2/activities/src/main/java/org/apache/abdera2/activities/extra/OfferObject.java
Mon Sep 26 22:52:11 2011
@@ -16,6 +16,7 @@ import org.apache.abdera2.common.anno.Na
   @Property(name="validFrom",to=Date.class),
   @Property(name="validUntil",to=Date.class)
 })
+@SuppressWarnings("unchecked")
 public class OfferObject extends ASObject {
 
   private static final long serialVersionUID = 8693274483912587801L;
@@ -27,7 +28,7 @@ public class OfferObject extends ASObjec
   }
   
   public <T extends ASObject>T getAvailability() {
-    return getProperty("availability");
+    return (T)getProperty("availability");
   }
   
   public void setAvailability(ASObject availability) {
@@ -35,7 +36,7 @@ public class OfferObject extends ASObjec
   }
   
   public <T extends ASObject>T getCondition() {
-    return getProperty("condition");
+    return (T)getProperty("condition");
   }
   
   public void setCondition(ASObject condition) {
@@ -43,7 +44,7 @@ public class OfferObject extends ASObjec
   }
   
   public <T extends ASObject>T getItem() {
-    return getProperty("item");
+    return (T)getProperty("item");
   }
   
   public void setItem(ASObject item) {
@@ -83,7 +84,7 @@ public class OfferObject extends ASObjec
   }
 
   public <T extends ASObject>T getRestriction() {
-    return getProperty("restriction");
+    return (T)getProperty("restriction");
   }
   
   public void setRestriction(ASObject restriction) {

Modified: abdera/abdera2/activities/src/main/java/org/apache/abdera2/activities/extra/TvEpisodeObject.java
URL: http://svn.apache.org/viewvc/abdera/abdera2/activities/src/main/java/org/apache/abdera2/activities/extra/TvEpisodeObject.java?rev=1176113&r1=1176112&r2=1176113&view=diff
==============================================================================
--- abdera/abdera2/activities/src/main/java/org/apache/abdera2/activities/extra/TvEpisodeObject.java
(original)
+++ abdera/abdera2/activities/src/main/java/org/apache/abdera2/activities/extra/TvEpisodeObject.java
Mon Sep 26 22:52:11 2011
@@ -14,6 +14,7 @@ import org.apache.abdera2.common.anno.Na
 @Properties({
   @Property(name="preview",to=MediaLink.class)
 })
+@SuppressWarnings("unchecked")
 public class TvEpisodeObject extends CreativeWork {
 
   private static final long serialVersionUID = -1551754630697817614L;
@@ -25,7 +26,7 @@ public class TvEpisodeObject extends Cre
   }
   
   public <T extends ASObject>T getActors() {
-    return getProperty("actors");
+    return (T)getProperty("actors");
   }
   
   public void setActors(ASObject actors) {
@@ -33,7 +34,7 @@ public class TvEpisodeObject extends Cre
   }
   
   public <T extends ASObject>T getDirector() {
-    return getProperty("director");
+    return (T)getProperty("director");
   }
   
   public void setDirector(ASObject director) {
@@ -41,7 +42,7 @@ public class TvEpisodeObject extends Cre
   }
 
   public <T extends ASObject>T getMusicBy() {
-    return getProperty("musicBy");
+    return (T)getProperty("musicBy");
   }
   
   public void setMusicBy(ASObject musicBy) {
@@ -49,7 +50,7 @@ public class TvEpisodeObject extends Cre
   }
   
   public <T extends ASObject>T getProducer() {
-    return getProperty("producer");
+    return (T)getProperty("producer");
   }
   
   public void setProducer(ASObject producer) {
@@ -57,7 +58,7 @@ public class TvEpisodeObject extends Cre
   }
   
   public <T extends ASObject>T getProductionCompany() {
-    return getProperty("productionCompany");
+    return (T)getProperty("productionCompany");
   }
   
   public void setProductionCompany(ASObject org) {
@@ -73,7 +74,7 @@ public class TvEpisodeObject extends Cre
   }
   
   public <T extends ASObject>T getSeries() {
-    return getProperty("series");
+    return (T)getProperty("series");
   }
   
   public void setSeries(ASObject series) {
@@ -81,7 +82,7 @@ public class TvEpisodeObject extends Cre
   }
   
   public <T extends ASObject>T getSeason() {
-    return getProperty("season");
+    return (T)getProperty("season");
   }
   
   public void setSeason(ASObject season) {

Modified: abdera/abdera2/activities/src/main/java/org/apache/abdera2/activities/extra/TvSeasonObject.java
URL: http://svn.apache.org/viewvc/abdera/abdera2/activities/src/main/java/org/apache/abdera2/activities/extra/TvSeasonObject.java?rev=1176113&r1=1176112&r2=1176113&view=diff
==============================================================================
--- abdera/abdera2/activities/src/main/java/org/apache/abdera2/activities/extra/TvSeasonObject.java
(original)
+++ abdera/abdera2/activities/src/main/java/org/apache/abdera2/activities/extra/TvSeasonObject.java
Mon Sep 26 22:52:11 2011
@@ -18,6 +18,7 @@ import org.apache.abdera2.common.anno.Na
   @Property(name="endDate",to=Date.class),
   @Property(name="preview",to=MediaLink.class)
 })
+@SuppressWarnings("unchecked")
 public class TvSeasonObject extends CreativeWork {
 
   private static final long serialVersionUID = -1551754630697817614L;
@@ -29,7 +30,7 @@ public class TvSeasonObject extends Crea
   }
   
   public <T extends ASObject>T getActors() {
-    return getProperty("actors");
+    return (T)getProperty("actors");
   }
   
   public void setActor(ASObject actors) {
@@ -37,7 +38,7 @@ public class TvSeasonObject extends Crea
   }
   
   public <T extends ASObject>T getDirector() {
-    return getProperty("director");
+    return (T)getProperty("director");
   }
   
   public void setDirector(ASObject object) {
@@ -45,7 +46,7 @@ public class TvSeasonObject extends Crea
   }
   
   public <T extends ASObject>T getMusicBy() {
-    return getProperty("musicBy");
+    return (T)getProperty("musicBy");
   }
   
   public void setMusicBy(ASObject musicBy) {
@@ -53,7 +54,7 @@ public class TvSeasonObject extends Crea
   }
   
   public <T extends ASObject>T getProducer() {
-    return getProperty("producer");
+    return (T)getProperty("producer");
   }
   
   public void setProducer(ASObject producer) {
@@ -61,7 +62,7 @@ public class TvSeasonObject extends Crea
   }
   
   public <T extends ASObject>T getProductionCompany() {
-    return getProperty("productionCompany");
+    return (T)getProperty("productionCompany");
   }
   
   public void setProductionCompany(ASObject org) {
@@ -101,7 +102,7 @@ public class TvSeasonObject extends Crea
   }
   
   public <T extends ASObject>T getSeries() {
-    return getProperty("series");
+    return (T)getProperty("series");
   }
   
   public void setSeries(ASObject series) {

Modified: abdera/abdera2/activities/src/main/java/org/apache/abdera2/activities/extra/TvSeriesObject.java
URL: http://svn.apache.org/viewvc/abdera/abdera2/activities/src/main/java/org/apache/abdera2/activities/extra/TvSeriesObject.java?rev=1176113&r1=1176112&r2=1176113&view=diff
==============================================================================
--- abdera/abdera2/activities/src/main/java/org/apache/abdera2/activities/extra/TvSeriesObject.java
(original)
+++ abdera/abdera2/activities/src/main/java/org/apache/abdera2/activities/extra/TvSeriesObject.java
Mon Sep 26 22:52:11 2011
@@ -18,6 +18,7 @@ import org.apache.abdera2.common.anno.Na
   @Property(name="endDate",to=Date.class),
   @Property(name="preview",to=MediaLink.class)
 })
+@SuppressWarnings("unchecked")
 public class TvSeriesObject extends CreativeWork {
 
   private static final long serialVersionUID = -1551754630697817614L;
@@ -29,7 +30,7 @@ public class TvSeriesObject extends Crea
   }
   
   public <T extends ASObject>T getActors() {
-    return getProperty("actors");
+    return (T)getProperty("actors");
   }
   
   public void setActor(ASObject actors) {
@@ -37,7 +38,7 @@ public class TvSeriesObject extends Crea
   }
   
   public <T extends ASObject>T getDirector() {
-    return getProperty("director");
+    return (T)getProperty("director");
   }
   
   public void setDirector(ASObject object) {
@@ -45,7 +46,7 @@ public class TvSeriesObject extends Crea
   }
 
   public <T extends ASObject>T getMusicBy() {
-    return getProperty("musicBy");
+    return (T)getProperty("musicBy");
   }
   
   public void setMusicBy(ASObject musicBy) {
@@ -53,7 +54,7 @@ public class TvSeriesObject extends Crea
   }
   
   public <T extends ASObject>T getProducer() {
-    return getProperty("producer");
+    return (T)getProperty("producer");
   }
   
   public void setProducer(ASObject producer) {
@@ -61,7 +62,7 @@ public class TvSeriesObject extends Crea
   }
   
   public <T extends ASObject>T getProductionCompany() {
-    return getProperty("productionCompany");
+    return (T)getProperty("productionCompany");
   }
   
   public void setProductionCompany(ASObject org) {
@@ -93,7 +94,7 @@ public class TvSeriesObject extends Crea
   }
   
   public <T extends ASObject>T getSeasons() {
-    return getProperty("seasons");
+    return (T)getProperty("seasons");
   }
   
   public void setSeasons(ASObject seasons) {
@@ -101,7 +102,7 @@ public class TvSeriesObject extends Crea
   }
   
   public <T extends ASObject>T getEpisodes() {
-    return getProperty("episodes");
+    return (T)getProperty("episodes");
   }
   
   public void setEpisodes(ASObject episodes) {

Modified: abdera/abdera2/activities/src/main/java/org/apache/abdera2/activities/extra/VersionObject.java
URL: http://svn.apache.org/viewvc/abdera/abdera2/activities/src/main/java/org/apache/abdera2/activities/extra/VersionObject.java?rev=1176113&r1=1176112&r2=1176113&view=diff
==============================================================================
--- abdera/abdera2/activities/src/main/java/org/apache/abdera2/activities/extra/VersionObject.java
(original)
+++ abdera/abdera2/activities/src/main/java/org/apache/abdera2/activities/extra/VersionObject.java
Mon Sep 26 22:52:11 2011
@@ -28,8 +28,9 @@ public class VersionObject 
   }
   
   /** The object this object describes a version of **/
+  @SuppressWarnings("unchecked")
   public <T extends ASObject>T getOf() {
-    return getProperty("of");
+    return (T)getProperty("of");
   }
   
   /** The object this object describes a version of **/

Modified: abdera/abdera2/activities/src/main/java/org/apache/abdera2/activities/model/ASObject.java
URL: http://svn.apache.org/viewvc/abdera/abdera2/activities/src/main/java/org/apache/abdera2/activities/model/ASObject.java?rev=1176113&r1=1176112&r2=1176113&view=diff
==============================================================================
--- abdera/abdera2/activities/src/main/java/org/apache/abdera2/activities/model/ASObject.java
(original)
+++ abdera/abdera2/activities/src/main/java/org/apache/abdera2/activities/model/ASObject.java
Mon Sep 26 22:52:11 2011
@@ -293,7 +293,7 @@ public class ASObject extends ASBase {
    * {"embed":{...}}
    */
   public <T extends ASObject>T getEmbed() {
-    return getProperty(EMBED);
+    return (T)getProperty(EMBED);
   }
   
   /**

Modified: abdera/abdera2/activities/src/main/java/org/apache/abdera2/activities/model/IO.java
URL: http://svn.apache.org/viewvc/abdera/abdera2/activities/src/main/java/org/apache/abdera2/activities/model/IO.java?rev=1176113&r1=1176112&r2=1176113&view=diff
==============================================================================
--- abdera/abdera2/activities/src/main/java/org/apache/abdera2/activities/model/IO.java (original)
+++ abdera/abdera2/activities/src/main/java/org/apache/abdera2/activities/model/IO.java Mon
Sep 26 22:52:11 2011
@@ -123,7 +123,7 @@ public abstract class IO {
   
   public <T extends ASBase>T read(InputStream in, String charset) {
     try {
-      return read(new InputStreamReader(in,charset));
+      return (T)read(new InputStreamReader(in,charset));
     } catch (Throwable t) {
       throw new RuntimeException(t);
     }
@@ -142,9 +142,10 @@ public abstract class IO {
       throw new RuntimeException(t);
     }
   }
+  @SuppressWarnings("unchecked")
   public <T extends ASObject> T readObject(InputStream in, String charset) {
     try {
-      return readObject(new InputStreamReader(in,charset));
+      return (T)readObject(new InputStreamReader(in,charset));
     } catch (Throwable t) {
       throw new RuntimeException(t);
     }

Modified: abdera/abdera2/activities/src/main/java/org/apache/abdera2/activities/protocol/AbstractActivitiesProvider.java
URL: http://svn.apache.org/viewvc/abdera/abdera2/activities/src/main/java/org/apache/abdera2/activities/protocol/AbstractActivitiesProvider.java?rev=1176113&r1=1176112&r2=1176113&view=diff
==============================================================================
--- abdera/abdera2/activities/src/main/java/org/apache/abdera2/activities/protocol/AbstractActivitiesProvider.java
(original)
+++ abdera/abdera2/activities/src/main/java/org/apache/abdera2/activities/protocol/AbstractActivitiesProvider.java
Mon Sep 26 22:52:11 2011
@@ -35,6 +35,7 @@ import org.apache.abdera2.common.protoco
 import org.apache.abdera2.common.protocol.ResponseContext;
 import org.apache.abdera2.common.protocol.TargetType;
 
+@SuppressWarnings("unchecked")
 public abstract class AbstractActivitiesProvider 
   extends BaseProvider
   implements ActivitiesProvider {
@@ -68,7 +69,6 @@ public abstract class AbstractActivities
     return typeAdapters;
   }
   
-  @SuppressWarnings("unchecked")
   public <S extends ResponseContext> S createErrorResponse(
     int code,
     String message, 
@@ -85,7 +85,7 @@ public abstract class AbstractActivities
 
   @Override
   public <S extends ResponseContext> S process(RequestContext request) {
-    return super.process(
+    return (S)super.process(
       request instanceof ActivitiesRequestContext?
         request:
         new ActivitiesRequestContext(request));

Modified: abdera/abdera2/activities/src/main/java/org/apache/abdera2/activities/protocol/AbstractActivitiesWorkspaceProvider.java
URL: http://svn.apache.org/viewvc/abdera/abdera2/activities/src/main/java/org/apache/abdera2/activities/protocol/AbstractActivitiesWorkspaceProvider.java?rev=1176113&r1=1176112&r2=1176113&view=diff
==============================================================================
--- abdera/abdera2/activities/src/main/java/org/apache/abdera2/activities/protocol/AbstractActivitiesWorkspaceProvider.java
(original)
+++ abdera/abdera2/activities/src/main/java/org/apache/abdera2/activities/protocol/AbstractActivitiesWorkspaceProvider.java
Mon Sep 26 22:52:11 2011
@@ -78,9 +78,10 @@ public abstract class AbstractActivities
       return (S)rc;
   }
   
+  @SuppressWarnings("unchecked")
   @Override
   public <S extends ResponseContext> S process(RequestContext request) {
-    return super.process(
+    return (S)super.process(
       request instanceof ActivitiesRequestContext?
         request:
         new ActivitiesRequestContext(request));

Modified: abdera/abdera2/activities/src/main/java/org/apache/abdera2/activities/protocol/basic/BasicAdapter.java
URL: http://svn.apache.org/viewvc/abdera/abdera2/activities/src/main/java/org/apache/abdera2/activities/protocol/basic/BasicAdapter.java?rev=1176113&r1=1176112&r2=1176113&view=diff
==============================================================================
--- abdera/abdera2/activities/src/main/java/org/apache/abdera2/activities/protocol/basic/BasicAdapter.java
(original)
+++ abdera/abdera2/activities/src/main/java/org/apache/abdera2/activities/protocol/basic/BasicAdapter.java
Mon Sep 26 22:52:11 2011
@@ -168,7 +168,7 @@ public abstract class BasicAdapter exten
     }
 
     public <S extends ResponseContext>S postItem(RequestContext request) {
-        return createOrUpdateObject(request, true);
+        return (S)createOrUpdateObject(request, true);
     }
 
     public <S extends ResponseContext>S deleteItem(RequestContext request) {
@@ -182,7 +182,7 @@ public abstract class BasicAdapter exten
     }
 
     public <S extends ResponseContext>S putItem(RequestContext request) {
-        return createOrUpdateObject(request, false);
+        return (S)createOrUpdateObject(request, false);
     }
 
     public <S extends ResponseContext>S getItem(RequestContext request) {



Mime
View raw message