Author: mcucchiara Date: Mon Nov 21 09:13:25 2011 New Revision: 1204408 URL: http://svn.apache.org/viewvc?rev=1204408&view=rev Log: Removed useless cast
Modified: struts/struts2/trunk/plugins/rest/src/main/java/org/apache/struts2/rest/ContentTypeInterceptor.java Modified: struts/struts2/trunk/plugins/rest/src/main/java/org/apache/struts2/rest/ContentTypeInterceptor.java URL: http://svn.apache.org/viewvc/struts/struts2/trunk/plugins/rest/src/main/java/org/apache/struts2/rest/ContentTypeInterceptor.java?rev=1204408&r1=1204407&r2=1204408&view=diff ============================================================================== --- struts/struts2/trunk/plugins/rest/src/main/java/org/apache/struts2/rest/ContentTypeInterceptor.java (original) +++ struts/struts2/trunk/plugins/rest/src/main/java/org/apache/struts2/rest/ContentTypeInterceptor.java Mon Nov 21 09:13:25 2011 @@ -31,7 +31,6 @@ import org.apache.struts2.rest.handler.C import javax.servlet.http.HttpServletRequest; import java.io.InputStream; import java.io.InputStreamReader; -import java.io.Reader; /** * Uses the content handler to apply the request body to the action @@ -60,9 +59,9 @@ public class ContentTypeInterceptor impl } if (request.getContentLength() > 0) { - InputStream is = (InputStream) request.getInputStream(); + InputStream is = request.getInputStream(); InputStreamReader reader = new InputStreamReader(is); - handler.toObject((Reader) reader, target); + handler.toObject(reader, target); } return invocation.invoke(); }