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

cziegeler pushed a commit to branch SLING-10871
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-api.git


The following commit(s) were added to refs/heads/SLING-10871 by this push:
     new 430570f  Fix result interface
430570f is described below

commit 430570f06536c7efe84d0367ec7b5e6ceccfbd67
Author: Carsten Ziegeler <[email protected]>
AuthorDate: Tue Oct 19 06:33:55 2021 +0200

    Fix result interface
---
 .../api/request/builder/SlingHttpServletResponseResult.java    | 10 +---------
 1 file changed, 1 insertion(+), 9 deletions(-)

diff --git 
a/src/main/java/org/apache/sling/api/request/builder/SlingHttpServletResponseResult.java
 
b/src/main/java/org/apache/sling/api/request/builder/SlingHttpServletResponseResult.java
index 823c7d9..7dc1e9c 100644
--- 
a/src/main/java/org/apache/sling/api/request/builder/SlingHttpServletResponseResult.java
+++ 
b/src/main/java/org/apache/sling/api/request/builder/SlingHttpServletResponseResult.java
@@ -34,14 +34,6 @@ import org.osgi.annotation.versioning.ProviderType;
 public interface SlingHttpServletResponseResult extends 
SlingHttpServletResponse {
 
     /**
-     * Build the response.
-     * Once this method has been called, the builder must not be used anymore. 
A new builder
-     * needs to be created, to create a new response.
-     * @return A response object
-     */
-    @NotNull SlingHttpServletResponse build();
-
-    /**
      * Get the content length
      * @return The content length or {@code -1} if not set
      */
@@ -58,7 +50,7 @@ public interface SlingHttpServletResponseResult extends 
SlingHttpServletResponse
      * @param name The name of the cookie
      * @return The cookie or {@code null} if no cookie with that name exists.
      */
-    public Cookie getCookie(String name);
+    Cookie getCookie(String name);
 
     /**
      * Get all cookies

Reply via email to