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 2017/11/29 16:20:57 UTC

[cxf] branch master updated: Fix some compiler warnings in eclipse

This is an automated email from the ASF dual-hosted git repository.

dkulp pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cxf.git


The following commit(s) were added to refs/heads/master by this push:
     new 87e99cf  Fix some compiler warnings in eclipse
87e99cf is described below

commit 87e99cf69f9bbe7dc33ddc69c8842e041bcb0b6f
Author: Daniel Kulp <dk...@apache.org>
AuthorDate: Wed Nov 29 10:13:19 2017 -0500

    Fix some compiler warnings in eclipse
---
 .../cxf/spring/boot/autoconfigure/CxfAutoConfigurationTests.java    | 6 ++++--
 .../src/main/java/org/apache/cxf/jaxrs/swagger/JaxRs2Extension.java | 1 +
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/integration/spring-boot/autoconfigure/src/test/java/org/apache/cxf/spring/boot/autoconfigure/CxfAutoConfigurationTests.java b/integration/spring-boot/autoconfigure/src/test/java/org/apache/cxf/spring/boot/autoconfigure/CxfAutoConfigurationTests.java
index eeefdf1..e5d85b4 100644
--- a/integration/spring-boot/autoconfigure/src/test/java/org/apache/cxf/spring/boot/autoconfigure/CxfAutoConfigurationTests.java
+++ b/integration/spring-boot/autoconfigure/src/test/java/org/apache/cxf/spring/boot/autoconfigure/CxfAutoConfigurationTests.java
@@ -33,6 +33,8 @@ import org.springframework.web.context.support.AnnotationConfigWebApplicationCon
 import static org.hamcrest.Matchers.equalTo;
 import static org.hamcrest.Matchers.hasEntry;
 import static org.hamcrest.Matchers.hasItem;
+
+
 import static org.junit.Assert.assertThat;
 
 /**
@@ -72,7 +74,7 @@ public class CxfAutoConfigurationTests {
     public void customPathWithTrailingSlash() {
         load(CxfAutoConfiguration.class, "cxf.path=/valid/");
         assertThat(this.context.getBean(ServletRegistrationBean.class).getUrlMappings(),
-                (Matcher) hasItem("/valid/*"));
+                (Matcher<Iterable<? super String>>) hasItem("/valid/*"));
     }
 
     @Test
@@ -81,7 +83,7 @@ public class CxfAutoConfigurationTests {
         assertThat(this.context.getBeansOfType(ServletRegistrationBean.class).size(),
                 equalTo(1));
         assertThat(this.context.getBean(ServletRegistrationBean.class).getUrlMappings(),
-                (Matcher) hasItem("/valid/*"));
+                (Matcher<Iterable<? super String>>) hasItem("/valid/*"));
     }
 
     @Test
diff --git a/rt/rs/description-swagger/src/main/java/org/apache/cxf/jaxrs/swagger/JaxRs2Extension.java b/rt/rs/description-swagger/src/main/java/org/apache/cxf/jaxrs/swagger/JaxRs2Extension.java
index bde0740..940f50a 100644
--- a/rt/rs/description-swagger/src/main/java/org/apache/cxf/jaxrs/swagger/JaxRs2Extension.java
+++ b/rt/rs/description-swagger/src/main/java/org/apache/cxf/jaxrs/swagger/JaxRs2Extension.java
@@ -60,6 +60,7 @@ public class JaxRs2Extension extends AbstractSwaggerExtension {
 
     private final ObjectMapper mapper = Json.mapper();
 
+    @SuppressWarnings("deprecation")
     @Override
     public List<Parameter> extractParameters(
             final List<Annotation> annotations,

-- 
To stop receiving notification emails like this one, please contact
['"commits@cxf.apache.org" <co...@cxf.apache.org>'].