You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by cz...@apache.org on 2022/03/16 06:02:39 UTC

[sling-org-apache-sling-api] branch master updated (0ff882d -> cf03b5a)

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

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


    from 0ff882d  SLING-11206 : Add support for buidling RequestProgressTracker
     new bccd908  SLING-11206 : Add support for buidling RequestProgressTracker
     new cf03b5a  Fix javadoc errors

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../java/org/apache/sling/api/request/RequestProgressTracker.java   | 5 ++++-
 src/main/java/org/apache/sling/api/resource/ResourceResolver.java   | 6 +++---
 2 files changed, 7 insertions(+), 4 deletions(-)

[sling-org-apache-sling-api] 01/02: SLING-11206 : Add support for buidling RequestProgressTracker

Posted by cz...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit bccd908b35d4516fb318f8f566da25ae2665bc3b
Author: Carsten Ziegeler <cz...@apache.org>
AuthorDate: Wed Mar 16 06:59:06 2022 +0100

    SLING-11206 : Add support for buidling RequestProgressTracker
---
 .../java/org/apache/sling/api/request/RequestProgressTracker.java     | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/sling/api/request/RequestProgressTracker.java b/src/main/java/org/apache/sling/api/request/RequestProgressTracker.java
index 1324717..e1e4e64 100644
--- a/src/main/java/org/apache/sling/api/request/RequestProgressTracker.java
+++ b/src/main/java/org/apache/sling/api/request/RequestProgressTracker.java
@@ -147,5 +147,7 @@ public interface RequestProgressTracker {
      * Get the duration in nano seconds.
      * @since 2.6.0 (Sling API Bundle 2.25.0)
      */
-    long getDuration();
+    default long getDuration() {
+        return 0;
+    }
 }

[sling-org-apache-sling-api] 02/02: Fix javadoc errors

Posted by cz...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit cf03b5a402759d4cd877a3e342d50f1756907b39
Author: Carsten Ziegeler <cz...@apache.org>
AuthorDate: Wed Mar 16 07:02:33 2022 +0100

    Fix javadoc errors
---
 .../java/org/apache/sling/api/request/RequestProgressTracker.java   | 1 +
 src/main/java/org/apache/sling/api/resource/ResourceResolver.java   | 6 +++---
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/main/java/org/apache/sling/api/request/RequestProgressTracker.java b/src/main/java/org/apache/sling/api/request/RequestProgressTracker.java
index e1e4e64..32f5ebf 100644
--- a/src/main/java/org/apache/sling/api/request/RequestProgressTracker.java
+++ b/src/main/java/org/apache/sling/api/request/RequestProgressTracker.java
@@ -145,6 +145,7 @@ public interface RequestProgressTracker {
 
     /**
      * Get the duration in nano seconds.
+     * @return The duration in nano seconds
      * @since 2.6.0 (Sling API Bundle 2.25.0)
      */
     default long getDuration() {
diff --git a/src/main/java/org/apache/sling/api/resource/ResourceResolver.java b/src/main/java/org/apache/sling/api/resource/ResourceResolver.java
index 9b03431..0efc152 100644
--- a/src/main/java/org/apache/sling/api/resource/ResourceResolver.java
+++ b/src/main/java/org/apache/sling/api/resource/ResourceResolver.java
@@ -608,7 +608,7 @@ public interface ResourceResolver extends Adaptable, Closeable {
      * any of the used resource providers is no longer active.
      *
      * All objects in the map maintained by {@link #getPropertyMap()} implementing
-     * the {@link #Closeable} interface, will be closed by calling {@code close()} on each of them.
+     * the {@link Closeable} interface, will be closed by calling {@code Closeable#close()} on each of them.
      * Any exception thrown by this call will be ignored. The order in which the objects are
      * closed is not defined.
      *
@@ -873,10 +873,10 @@ public interface ResourceResolver extends Adaptable, Closeable {
      * resource resolver. The resource resolver itself does not use this map.
      *
      * The resource resolver will clear the map during {@link #close()}, so afterwards the map is empty.
-     * If a stored value implements the {@link #Closeable} interface, the ResourceResolver will invoke the
+     * If a stored value implements the {@link Closeable} interface, the ResourceResolver will invoke the
      * <code>close()</code> of the value before clearing the map.
      *
-     * @returns the property map
+     * @return the property map
      * @see #close()
      * @since 2.13.0 (Sling API Bundle 2.24.0)
      */