You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by dk...@apache.org on 2016/02/26 16:42:10 UTC

cxf git commit: Fix warnings in eclipse

Repository: cxf
Updated Branches:
  refs/heads/master cab60c066 -> 36794b143


Fix warnings in eclipse


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

Branch: refs/heads/master
Commit: 36794b14373561710e8165f8c31e15f046085228
Parents: cab60c0
Author: Daniel Kulp <dk...@apache.org>
Authored: Fri Feb 26 10:41:56 2016 -0500
Committer: Daniel Kulp <dk...@apache.org>
Committed: Fri Feb 26 10:41:56 2016 -0500

----------------------------------------------------------------------
 .../interceptors/WebFaultOutInterceptorTestCase.java  | 14 ++++++--------
 1 file changed, 6 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/36794b14/rt/frontend/jaxws/src/test/java/org/apache/cxf/jaxws/interceptors/WebFaultOutInterceptorTestCase.java
----------------------------------------------------------------------
diff --git a/rt/frontend/jaxws/src/test/java/org/apache/cxf/jaxws/interceptors/WebFaultOutInterceptorTestCase.java b/rt/frontend/jaxws/src/test/java/org/apache/cxf/jaxws/interceptors/WebFaultOutInterceptorTestCase.java
index de769b1..63003ea 100644
--- a/rt/frontend/jaxws/src/test/java/org/apache/cxf/jaxws/interceptors/WebFaultOutInterceptorTestCase.java
+++ b/rt/frontend/jaxws/src/test/java/org/apache/cxf/jaxws/interceptors/WebFaultOutInterceptorTestCase.java
@@ -49,22 +49,16 @@ import org.junit.Assert;
 import org.junit.Test;
 
 /**
- * Test case for https://bugzilla.redhat.com/show_bug.cgi?id=1177704
- *
- * Scenario:
- *
  * Let WebFaultOutInterceptor process a message containing a SoapFault.
  *
  * If SoapFault's exception or its' cause is instance of SOAPFaultException, values of SOAPFaultException.subCodes
  * should be copied to SoapFault.subCodes.
- *
- * @author Tomas Hofman (thofman@redhat.com)
  */
 public class WebFaultOutInterceptorTestCase {
 
     private static final QName CODE = new QName("ns", "code");
     private static final QName SUBCODE = new QName("ns", "subcode");
-    private static final List SUBCODES = Collections.singletonList(SUBCODE);
+    private static final List<QName> SUBCODES = Collections.singletonList(SUBCODE);
 
     private WebFaultOutInterceptor interceptor = new WebFaultOutInterceptor();
 
@@ -78,6 +72,9 @@ public class WebFaultOutInterceptorTestCase {
 
         interceptor.handleMessage(message);
 
+        
+        
+        
         Assert.assertNotNull(soapFault.getSubCodes());
         Assert.assertEquals(1, soapFault.getSubCodes().size());
         Assert.assertEquals(SUBCODE, soapFault.getSubCodes().get(0));
@@ -133,6 +130,7 @@ public class WebFaultOutInterceptorTestCase {
         return message;
     }
 
+    @SuppressWarnings("rawtypes") // old SAAJ API doesn't have generics
     private class SOAPFaultStub implements SOAPFault {
 
         @Override
@@ -161,7 +159,7 @@ public class WebFaultOutInterceptorTestCase {
         }
 
         @Override
-        public Iterator getFaultSubcodes() {
+        public Iterator<QName> getFaultSubcodes() {
             return SUBCODES.iterator();
         }