abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r1220539 - /abdera/abdera2/activities/src/main/java/org/apache/abdera2/activities/model/IO.java
Date Sun, 18 Dec 2011 20:59:42 GMT
Author: jmsnell
Date: Sun Dec 18 20:59:42 2011
New Revision: 1220539

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

Modified:
    abdera/abdera2/activities/src/main/java/org/apache/abdera2/activities/model/IO.java

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=1220539&r1=1220538&r2=1220539&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 Sun
Dec 18 20:59:42 2011
@@ -58,6 +58,7 @@ import com.google.common.util.concurrent
  * is to use two separate IO instances each configured with the 
  * appropriate property and object type mappings.
  */
+@SuppressWarnings("unchecked")
 public abstract class IO {
 
   @DefaultImplementation("org.apache.abdera2.activities.io.gson.GsonIO.Builder")
@@ -163,7 +164,6 @@ public abstract class IO {
     }
   }
   
-  @SuppressWarnings("unchecked")
   public <T extends ASBase>T read(InputStream in, String charset) {
     try {
       return (T)read(new InputStreamReader(in,charset));
@@ -190,7 +190,7 @@ public abstract class IO {
       throw new RuntimeException(t);
     }
   }
-  @SuppressWarnings("unchecked")
+
   public <T extends ASObject> T readObject(InputStream in, String charset) {
     try {
       return (T)readObject(new InputStreamReader(in,charset));



Mime
View raw message