You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by kw...@apache.org on 2021/10/26 15:53:53 UTC
[sling-org-apache-sling-api] branch master updated: trivial:
clarify javadoc for ResourceResolver.create(...)
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-api.git
The following commit(s) were added to refs/heads/master by this push:
new 7b299f8 trivial: clarify javadoc for ResourceResolver.create(...)
7b299f8 is described below
commit 7b299f865bb3ae6d2eedf0cd52cb5f937ed62d60
Author: Konrad Windszus <kw...@apache.org>
AuthorDate: Tue Oct 26 17:53:49 2021 +0200
trivial: clarify javadoc for ResourceResolver.create(...)
---
.../java/org/apache/sling/api/resource/ResourceResolver.java | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
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 03dee38..73bc627 100644
--- a/src/main/java/org/apache/sling/api/resource/ResourceResolver.java
+++ b/src/main/java/org/apache/sling/api/resource/ResourceResolver.java
@@ -672,7 +672,7 @@ public interface ResourceResolver extends Adaptable, Closeable {
throws PersistenceException;
/**
- * Add a child resource to the given parent resource
+ * Add a child resource to the given parent resource.
* The changes are transient and require a call to {@link #commit()} for persisting.
*
* @param parent The parent resource
@@ -682,9 +682,8 @@ public interface ResourceResolver extends Adaptable, Closeable {
*
* @throws NullPointerException if the resource parameter or name parameter is null
* @throws IllegalArgumentException if the name contains a slash
- * @throws UnsupportedOperationException If the resource provider does not allow to
- * create a resource at that location.
- * @throws PersistenceException If the operation fails.
+ * @throws UnsupportedOperationException If the underlying resource provider does not support write operations.
+ * @throws PersistenceException If the operation fails in the underlying resource provide, e.g. in case a resource of that name does already exist.
* @throws IllegalStateException if this resource resolver has already been
* {@link #close() closed}.
* @since 2.2 (Sling API Bundle 2.2.0)
@@ -766,7 +765,7 @@ public interface ResourceResolver extends Adaptable, Closeable {
* @param resourceType The resource type to check this resource against.
* @return <code>true</code> if the resource type or any of the resource's
* super type(s) equals the given resource type. <code>false</code>
- * is also returned if <code>resource</code> or<code>resourceType</code>
+ * is also returned if <code>resource</code> or <code>resourceType</code>
* are <code>null</code>.
* @throws IllegalStateException if this resource resolver has already been
* {@link #close() closed}.