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

commit f4a293c5291c9cccd1ffed29fcd69dadf6c31de5
Author: Daniel Kulp <dk...@apache.org>
AuthorDate: Wed Mar 21 13:13:40 2018 -0400

    Fix some eclipse warnings
---
 .../cdi/src/main/java/org/apache/cxf/cdi/ContextResolved.java        | 2 +-
 .../main/java/org/apache/cxf/cdi/DelegateContextAnnotatedType.java   | 1 +
 .../src/main/java/org/apache/cxf/jaxrs/provider/ProviderFactory.java | 1 +
 .../src/main/java/org/apache/cxf/systests/cdi/base/Injections.java   | 5 +++--
 4 files changed, 6 insertions(+), 3 deletions(-)

diff --git 
a/integration/cdi/src/main/java/org/apache/cxf/cdi/ContextResolved.java 
b/integration/cdi/src/main/java/org/apache/cxf/cdi/ContextResolved.java
index 932467e..94d43d9 100644
--- a/integration/cdi/src/main/java/org/apache/cxf/cdi/ContextResolved.java
+++ b/integration/cdi/src/main/java/org/apache/cxf/cdi/ContextResolved.java
@@ -47,6 +47,6 @@ public @interface ContextResolved {
     ContextResolved LITERAL = new ContextResolvedLiteral();
 
     final class ContextResolvedLiteral extends 
AnnotationLiteral<ContextResolved> implements ContextResolved {
-
+        private static final long serialVersionUID = 1L;
     }
 }
diff --git 
a/integration/cdi/src/main/java/org/apache/cxf/cdi/DelegateContextAnnotatedType.java
 
b/integration/cdi/src/main/java/org/apache/cxf/cdi/DelegateContextAnnotatedType.java
index 437a39f..792a562 100644
--- 
a/integration/cdi/src/main/java/org/apache/cxf/cdi/DelegateContextAnnotatedType.java
+++ 
b/integration/cdi/src/main/java/org/apache/cxf/cdi/DelegateContextAnnotatedType.java
@@ -179,6 +179,7 @@ final class DelegateContextAnnotatedType<X> implements 
AnnotatedType<X> {
     }
 
     private static final class InjectLiteral extends AnnotationLiteral<Inject> 
implements Inject {
+        private static final long serialVersionUID = 1L;
 
     }
 }
diff --git 
a/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/provider/ProviderFactory.java
 
b/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/provider/ProviderFactory.java
index e8e7a87..e62d339 100644
--- 
a/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/provider/ProviderFactory.java
+++ 
b/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/provider/ProviderFactory.java
@@ -1409,6 +1409,7 @@ public abstract class ProviderFactory {
         return null;
     }
 
+    @SuppressWarnings("unchecked")
     public void setProviderComparator(Comparator<?> providerComparator) {
         this.providerComparator = providerComparator;
 
diff --git 
a/systests/cdi/base/src/main/java/org/apache/cxf/systests/cdi/base/Injections.java
 
b/systests/cdi/base/src/main/java/org/apache/cxf/systests/cdi/base/Injections.java
index 7e2391c..5e6a7c1 100644
--- 
a/systests/cdi/base/src/main/java/org/apache/cxf/systests/cdi/base/Injections.java
+++ 
b/systests/cdi/base/src/main/java/org/apache/cxf/systests/cdi/base/Injections.java
@@ -40,6 +40,7 @@ import javax.ws.rs.ext.Providers;
 import org.apache.cxf.cdi.ContextResolved;
 
 @ApplicationScoped
+@SuppressWarnings("unused")
 public class Injections {
     /* this one is not supposed to work in the systests
     @Inject
@@ -86,11 +87,11 @@ public class Injections {
     private Providers cxfProviders; //NOPMD
 
     @Inject
-    private ContextResolver contextResolver; //NOPMD
+    private ContextResolver<?> contextResolver; //NOPMD
 
     @Inject
     @ContextResolved
-    private ContextResolver cxfContextResolver; //NOPMD
+    private ContextResolver<?> cxfContextResolver; //NOPMD
 
     @Inject
     private HttpServletRequest httpServletRequest; //NOPMD

-- 
To stop receiving notification emails like this one, please contact
dk...@apache.org.

Reply via email to