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

kwin pushed a commit to branch master
in repository 
https://gitbox.apache.org/repos/asf/sling-org-apache-sling-servlets-annotations.git

commit d2969f13aa14089ac7bc0bf72d60bc94a4455983
Author: Konrad Windszus <[email protected]>
AuthorDate: Fri May 25 15:05:54 2018 +0200

    SLING-7624 use singular for methods accepting arrays
---
 .../servlets/annotations/SlingServletResourceTypes.java      | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git 
a/src/main/java/org/apache/sling/servlets/annotations/SlingServletResourceTypes.java
 
b/src/main/java/org/apache/sling/servlets/annotations/SlingServletResourceTypes.java
index 0881303..0da40d0 100644
--- 
a/src/main/java/org/apache/sling/servlets/annotations/SlingServletResourceTypes.java
+++ 
b/src/main/java/org/apache/sling/servlets/annotations/SlingServletResourceTypes.java
@@ -42,7 +42,7 @@ public @interface SlingServletResourceTypes {
      * {@link SlingServletPrefix} annotation.
      * <p>
      */
-    String[] resourceTypes();
+    String[] resourceType();
     
     /**
      * One ore more request URL selectors supported by the servlet. The
@@ -52,24 +52,24 @@ public @interface SlingServletResourceTypes {
      * otherwise the servlet is not executed. After that may follow 
arbitrarily many non-registered selectors.
      * @see ServletResolverConstants#SLING_SERVLET_SELECTORS
      */
-    String[] selectors() default {};
+    String[] selector() default {};
     
     /**
-     * The request URL extensions supported by the servlet
+     * The request URL extension(s) supported by the servlet
      * for GET requests.
      * <p>
      * It this is not set, the servlet is not limited to certain extensions.
      * @see ServletResolverConstants#SLING_SERVLET_EXTENSIONS
      */
-    String[] extensions() default {};
+    String[] extension() default {};
     
     /**
-     * The request methods supported by the servlet. The value may be one of 
the HTTP 
+     * The request method(s) supported by the servlet. The value may be one of 
the HTTP 
      * methods or "*" for all methods.
      * <p>
      * If this is not set (i.e. empty array) it is assumed to be {@code GET} 
and {@code HEAD}.
      * @see ServletResolverConstants#SLING_SERVLET_METHODS
      * @see <a href="https://tools.ietf.org/html/rfc7231#section-4.3";>HTTP 1.1 
Spec Methods</a>
      */
-    String[] methods() default {};
+    String[] method() default {};
 }

-- 
To stop receiving notification emails like this one, please contact
[email protected].

Reply via email to