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 15:54:20 GMT
Repository: cxf
Updated Branches:
  refs/heads/3.1.x-fixes 7a2d47507 -> 9678f719c


[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/9678f719
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/9678f719
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/9678f719

Branch: refs/heads/3.1.x-fixes
Commit: 9678f719c137a5e41fa50012a11086614209feaf
Parents: 7a2d475
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 15:54:09 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/9678f719/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 4a6ac39..d02e117 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
@@ -252,6 +252,7 @@ public class JAXRSAsyncClientTest extends AbstractBusClientServerTestBase
{
         wc.close();
     }
     
+    @SuppressWarnings("rawtypes")
     @Test
     public void testGenericInvocationCallback() throws Exception {
         InvocationCallback<?> callback = createGenericInvocationCallback();
@@ -262,6 +263,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