Fix generic type problem
authorlajoie <lajoie@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Mon, 23 Apr 2007 12:39:41 +0000 (12:39 +0000)
committerlajoie <lajoie@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Mon, 23 Apr 2007 12:39:41 +0000 (12:39 +0000)
git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/trunk@2185 ab3bd59b-922f-494d-bb5f-6f0a3c29deca

src/edu/internet2/middleware/shibboleth/idp/profile/saml2/HTTPSOAPAttributeQuery.java

index 848bdc3..2d53b2c 100644 (file)
@@ -41,17 +41,19 @@ public class HTTPSOAPAttributeQuery extends AbstractAttributeQuery {
     }
 
     /** {@inheritDoc} */
+    @SuppressWarnings("unchecked")
     protected MessageDecoder<ServletRequest> getMessageDecoder(ProfileRequest<ServletRequest> request)
             throws ProfileException {
-        MessageDecoder<ServletRequest> decoder = new HTTPSOAP11Decoder();
+        MessageDecoder decoder = new HTTPSOAP11Decoder();
         decoder.setRequest(request.getRawRequest());
         return decoder;
     }
 
     /** {@inheritDoc} */
+    @SuppressWarnings("unchecked")
     protected MessageEncoder<ServletResponse> getMessageEncoder(ProfileResponse<ServletResponse> response)
             throws ProfileException {
-        MessageEncoder<ServletResponse> encoder = new HTTPSOAP11Encoder();
+        MessageEncoder encoder = new HTTPSOAP11Encoder();
         encoder.setResponse(response.getRawResponse());
         return encoder;
     }