You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2017/11/07 09:49:54 UTC
[sling-org-apache-sling-jcr-webdav] 30/38: Remove unused imports
and fix some javadoc errors.
This is an automated email from the ASF dual-hosted git repository.
rombert pushed a commit to annotated tag org.apache.sling.jcr.webdav-2.0.2-incubator
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-jcr-webdav.git
commit ffb8853a7e3db98cbc1c6c43ca94dce07d17694b
Author: Carsten Ziegeler <cz...@apache.org>
AuthorDate: Tue Jun 10 13:41:25 2008 +0000
Remove unused imports and fix some javadoc errors.
git-svn-id: https://svn.apache.org/repos/asf/incubator/sling/trunk/jcr/webdav@666103 13f79535-47bb-0310-9956-ffa450edef68
---
.../webdav/impl/helper/SlingLocatorFactory.java | 15 +++++--------
.../webdav/impl/helper/SlingResourceLocator.java | 26 +++++++++++-----------
2 files changed, 18 insertions(+), 23 deletions(-)
diff --git a/src/main/java/org/apache/sling/jcr/webdav/impl/helper/SlingLocatorFactory.java b/src/main/java/org/apache/sling/jcr/webdav/impl/helper/SlingLocatorFactory.java
index 7d2384c..6c35a6c 100644
--- a/src/main/java/org/apache/sling/jcr/webdav/impl/helper/SlingLocatorFactory.java
+++ b/src/main/java/org/apache/sling/jcr/webdav/impl/helper/SlingLocatorFactory.java
@@ -37,7 +37,7 @@ public class SlingLocatorFactory implements DavLocatorFactory {
"Request handle must not be null.");
}
-
+
// if href starts with the prefix, cut the prefix off the href
if (prefix != null && prefix.length() > 0) {
if (href.startsWith(prefix)) {
@@ -69,7 +69,7 @@ public class SlingLocatorFactory implements DavLocatorFactory {
* workspace path and resource path, whithout modifying the specified
* Strings. Note, that it is expected that the resource path starts with the
* given workspace path unless both values are <code>null</code>.
- *
+ *
* @param prefix
* @param workspacePath path or the workspace containing this resource or
* <code>null</code>.
@@ -85,17 +85,12 @@ public class SlingLocatorFactory implements DavLocatorFactory {
/**
* Create a new <code>DavResourceLocator</code> from the specified prefix,
- * workspace path and resource path. If <code>isResourcePath</code> is set
- * to <code>false</code>, the given 'resourcePath' is converted by
- * calling {@link #getResourcePath(String, String)}. Otherwise the same
- * restriction applies as for
- * {@link #createResourceLocator(String, String, String)}.
- *
+ * workspace path and resource path. I
+ *
* @param prefix
* @param workspacePath
- * @param path
+ * @param resourcePath
* @param isResourcePath
- * @return
* @see DavLocatorFactory#createResourceLocator(String, String, String,
* boolean)
*/
diff --git a/src/main/java/org/apache/sling/jcr/webdav/impl/helper/SlingResourceLocator.java b/src/main/java/org/apache/sling/jcr/webdav/impl/helper/SlingResourceLocator.java
index ba9c7c9..8ce9f15 100644
--- a/src/main/java/org/apache/sling/jcr/webdav/impl/helper/SlingResourceLocator.java
+++ b/src/main/java/org/apache/sling/jcr/webdav/impl/helper/SlingResourceLocator.java
@@ -54,7 +54,7 @@ class SlingResourceLocator implements DavResourceLocator {
/**
* Return the prefix used to build the href String. This includes the
* initial hrefPrefix as well a the path prefix.
- *
+ *
* @return prefix String used to build the href.
*/
public String getPrefix() {
@@ -65,7 +65,7 @@ class SlingResourceLocator implements DavResourceLocator {
* Returns the resource path which always starts with the workspace
* path, if a workspace resource exists. For the top most resource
* (request handle '/'), <code>null</code> is returned.
- *
+ *
* @return resource path or <code>null</code>
* @see org.apache.jackrabbit.webdav.DavResourceLocator#getResourcePath()
*/
@@ -76,7 +76,7 @@ class SlingResourceLocator implements DavResourceLocator {
/**
* Return the workspace path or <code>null</code> if this locator
* object represents the '/' request handle.
- *
+ *
* @return workspace path or <code>null</code>
* @see org.apache.jackrabbit.webdav.DavResourceLocator#getWorkspacePath()
*/
@@ -88,7 +88,7 @@ class SlingResourceLocator implements DavResourceLocator {
* Return the workspace name or <code>null</code> if this locator
* object represents the '/' request handle, which does not contain a
* workspace path.
- *
+ *
* @return workspace name or <code>null</code>
* @see org.apache.jackrabbit.webdav.DavResourceLocator#getWorkspaceName()
*/
@@ -99,7 +99,7 @@ class SlingResourceLocator implements DavResourceLocator {
/**
* Returns true if the specified locator object refers to a resource
* within the same workspace.
- *
+ *
* @param locator
* @return true if the workspace name obtained from the given locator
* refers to the same workspace as the workspace name of this
@@ -115,7 +115,7 @@ class SlingResourceLocator implements DavResourceLocator {
/**
* Returns true if the specified string equals to this workspace name or
* if both names are null.
- *
+ *
* @param workspaceName
* @return true if the workspace name is equal to this workspace name.
* @see DavResourceLocator#isSameWorkspace(String)
@@ -132,7 +132,7 @@ class SlingResourceLocator implements DavResourceLocator {
* starts with the workspace path). It assures a trailing '/' in case
* the href is used for collection. Note, that the resource path is
* {@link Text#escapePath(String) escaped}.
- *
+ *
* @param isCollection
* @return href String representing the text of the href element
* @see org.apache.jackrabbit.webdav.DavConstants#XML_HREF
@@ -144,7 +144,7 @@ class SlingResourceLocator implements DavResourceLocator {
/**
* Returns true if the 'workspacePath' field is <code>null</code>.
- *
+ *
* @return true if the 'workspacePath' field is <code>null</code>.
* @see org.apache.jackrabbit.webdav.DavResourceLocator#isRootLocation()
*/
@@ -154,7 +154,7 @@ class SlingResourceLocator implements DavResourceLocator {
/**
* Return the factory that created this locator.
- *
+ *
* @return factory
* @see org.apache.jackrabbit.webdav.DavResourceLocator#getFactory()
*/
@@ -163,9 +163,9 @@ class SlingResourceLocator implements DavResourceLocator {
}
/**
- * Uses {@link AbstractLocatorFactory#getRepositoryPath(String, String)}
+ * Uses {@link #getResourcePath()}
* to build the repository path.
- *
+ *
* @see DavResourceLocator#getRepositoryPath()
*/
public String getRepositoryPath() {
@@ -178,7 +178,7 @@ class SlingResourceLocator implements DavResourceLocator {
* Computes the hash code from the href, that is built from the prefix,
* the workspace name and the resource path all of them representing
* final instance fields.
- *
+ *
* @return the hash code
*/
public int hashCode() {
@@ -188,7 +188,7 @@ class SlingResourceLocator implements DavResourceLocator {
/**
* Returns true, if the given object is a
* <code>SlingResourceLocator</code> with the same hash code.
- *
+ *
* @param obj the object to compare to
* @return <code>true</code> if the 2 objects are equal;
* <code>false</code> otherwise
--
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.