cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject git commit: [CXF-5612] Logging a warning if JAX-RS method has no Path or HTTP method annotations
Date Fri, 14 Mar 2014 10:27:59 GMT
Repository: cxf
Updated Branches:
  refs/heads/2.7.x-fixes a390021cb -> e1fe0acfd


[CXF-5612] Logging a warning if JAX-RS method has no Path or HTTP method annotations


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

Branch: refs/heads/2.7.x-fixes
Commit: e1fe0acfdccb68f89c37dc133783eae76931ce72
Parents: a390021
Author: Sergey Beryozkin <sberyozkin@talend.com>
Authored: Fri Mar 14 10:27:34 2014 +0000
Committer: Sergey Beryozkin <sberyozkin@talend.com>
Committed: Fri Mar 14 10:27:34 2014 +0000

----------------------------------------------------------------------
 .../src/main/java/org/apache/cxf/jaxrs/utils/AnnotationUtils.java  | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/e1fe0acf/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/AnnotationUtils.java
----------------------------------------------------------------------
diff --git a/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/AnnotationUtils.java
b/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/AnnotationUtils.java
index 026207c..e902512 100644
--- a/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/AnnotationUtils.java
+++ b/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/AnnotationUtils.java
@@ -221,6 +221,8 @@ public final class AnnotationUtils {
         }
         for (Annotation[] paramAnnotations : m.getParameterAnnotations()) {
             if (isValidParamAnnotations(paramAnnotations)) {
+                LOG.warning("Method " + m.getName() + " in " + m.getDeclaringClass().getName()
+                             + " has no JAX-RS Path or HTTP Method annotations");
                 return m;
             }
         }


Mime
View raw message