cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject cxf git commit: [CXF-6793] Adding few SuppressWarnings to a test
Date Mon, 22 Feb 2016 16:58:16 GMT
Repository: cxf
Updated Branches:
  refs/heads/3.0.x-fixes c38f61f4c -> 87ffd0439


[CXF-6793] Adding few SuppressWarnings to a test


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/87ffd043
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/87ffd043
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/87ffd043

Branch: refs/heads/3.0.x-fixes
Commit: 87ffd04397e747041074931cd0475110815dd422
Parents: c38f61f
Author: Sergey Beryozkin <sberyozkin@gmail.com>
Authored: Mon Feb 22 15:53:23 2016 +0000
Committer: Sergey Beryozkin <sberyozkin@gmail.com>
Committed: Mon Feb 22 16:58:05 2016 +0000

----------------------------------------------------------------------
 .../java/org/apache/cxf/systest/jaxrs/JAXRSAsyncClientTest.java  | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/87ffd043/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSAsyncClientTest.java
----------------------------------------------------------------------
diff --git a/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSAsyncClientTest.java
b/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSAsyncClientTest.java
index 8d0b837..227a01e 100644
--- a/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSAsyncClientTest.java
+++ b/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSAsyncClientTest.java
@@ -253,6 +253,7 @@ public class JAXRSAsyncClientTest extends AbstractBusClientServerTestBase
{
         wc.close();
     }
     
+    @SuppressWarnings("rawtypes")
     @Test
     public void testGenericInvocationCallback() throws Exception {
         InvocationCallback<?> callback = createGenericInvocationCallback();
@@ -263,6 +264,9 @@ public class JAXRSAsyncClientTest extends AbstractBusClientServerTestBase
{
         assertTrue(((GenericInvocationCallback)callback).getResult().readEntity(Boolean.class));
     }
     
+    @SuppressWarnings({
+     "unchecked", "rawtypes"
+    })
     private static <T> InvocationCallback<T> createGenericInvocationCallback()
{
         return new GenericInvocationCallback();
     }


Mime
View raw message