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:19:31 UTC
[sling-org-apache-sling-bundleresource-impl] 14/30: Clean up code
This is an automated email from the ASF dual-hosted git repository.
rombert pushed a commit to annotated tag org.apache.sling.bundleresource.impl-2.0.6
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-bundleresource-impl.git
commit 7fee5e82ec3009144ca544a2a4c0dfc200b5c36c
Author: Carsten Ziegeler <cz...@apache.org>
AuthorDate: Tue Nov 3 23:45:20 2009 +0000
Clean up code
git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/bundles/extensions/bundleresource@832613 13f79535-47bb-0310-9956-ffa450edef68
---
.../sling/bundleresource/impl/BundleResourceCache.java | 15 ++++-----------
1 file changed, 4 insertions(+), 11 deletions(-)
diff --git a/src/main/java/org/apache/sling/bundleresource/impl/BundleResourceCache.java b/src/main/java/org/apache/sling/bundleresource/impl/BundleResourceCache.java
index 55b5aa5..fab1d11 100644
--- a/src/main/java/org/apache/sling/bundleresource/impl/BundleResourceCache.java
+++ b/src/main/java/org/apache/sling/bundleresource/impl/BundleResourceCache.java
@@ -100,7 +100,7 @@ class BundleResourceCache {
/**
* Creates a new instance of this class providing access to the entries in
* the given <code>bundle</code>.
- *
+ *
* @param bundle
*/
BundleResourceCache(Bundle bundle) {
@@ -127,7 +127,7 @@ class BundleResourceCache {
* <p>
* This method is backed by the <code>Bundle.getEntry(String)</code>
* method.
- *
+ *
* @param path The path to the bundle entry to return
* @return The URL to access the bundle entry or <code>null</code> if the
* bundle does not contain the request entry.
@@ -155,7 +155,7 @@ class BundleResourceCache {
* This method is backed by the <code>Bundle.getEntryPaths(String)</code>
* method but returns an <code>Iterator<String></code> instead of an
* <code>Enumeration</code> of strings.
- *
+ *
* @param parentPath The path to the parent entry whose child entries are to
* be returned.
* @return An <code>Iterator<String></code> providing the paths of
@@ -244,7 +244,7 @@ class BundleResourceCache {
/**
* Creates a new instance of this size limited map.
- *
+ *
* @param limit The maximum number of entries in this map. If this value
* is less than or equal to zero, the default size of
* {@link #DEFAULT_LIMIT} is used.
@@ -263,13 +263,6 @@ class BundleResourceCache {
}
/**
- * Returns the maximum number of entries to be stored in this map.
- */
- int getLimit() {
- return limit;
- }
-
- /**
* Returns <code>true</code> if the current number of elements in the
* map exceeds the configured limit.
*/
--
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.