wink-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b...@apache.org
Subject svn commit: r903949 - /incubator/wink/trunk/wink-common/src/main/java/org/apache/wink/common/internal/registry/metadata/ResourceMetadataCollector.java
Date Thu, 28 Jan 2010 03:55:10 GMT
Author: bluk
Date: Thu Jan 28 03:55:10 2010
New Revision: 903949

URL: http://svn.apache.org/viewvc?rev=903949&view=rev
Log:
Do not emit warning when property method

See [WINK-248]

Modified:
    incubator/wink/trunk/wink-common/src/main/java/org/apache/wink/common/internal/registry/metadata/ResourceMetadataCollector.java

Modified: incubator/wink/trunk/wink-common/src/main/java/org/apache/wink/common/internal/registry/metadata/ResourceMetadataCollector.java
URL: http://svn.apache.org/viewvc/incubator/wink/trunk/wink-common/src/main/java/org/apache/wink/common/internal/registry/metadata/ResourceMetadataCollector.java?rev=903949&r1=903948&r2=903949&view=diff
==============================================================================
--- incubator/wink/trunk/wink-common/src/main/java/org/apache/wink/common/internal/registry/metadata/ResourceMetadataCollector.java
(original)
+++ incubator/wink/trunk/wink-common/src/main/java/org/apache/wink/common/internal/registry/metadata/ResourceMetadataCollector.java
Thu Jan 28 03:55:10 2010
@@ -271,6 +271,11 @@
         // method/sub-resource locator,
         // since there is at least one JAX-RS annotation on the method
         if (metadata.getHttpMethod() == null && metadata.getPath() == null) {
+            if(metadata.isEncoded() || defaultValue != null) {
+                // property methods may have @Encoded or @DefaultValue but
+                // are not HTTP methods/paths
+                return null;
+            }
             logger
                 .warn(Messages.getMessage("methodNotAnnotatedCorrectly"),
                       method.getName(),



Mime
View raw message