This is an automated email from the ASF dual-hosted git repository.
rombert pushed a commit to branch master
in repository
https://gitbox.apache.org/repos/asf/sling-org-apache-sling-commons-osgi.git
The following commit(s) were added to refs/heads/master by this push:
new 8635856 docs: fix typos and stale comment in Javadoc (#4)
8635856 is described below
commit 8635856737280369a865cb4f2a9dda6839a29715
Author: Léon Simmons <[email protected]>
AuthorDate: Thu Jun 18 07:12:55 2026 -0400
docs: fix typos and stale comment in Javadoc (#4)
- Fix "it's" → "its" (possessive) in RankedServices.java
- Fix "services references" → "service references" in
SortingServiceTracker.java
- Update @return tag to "Service reference list" to match return type
- Fix stale comment "copying it from the array" → "from the map" (code uses
serviceMap.values())
---
src/main/java/org/apache/sling/commons/osgi/RankedServices.java | 4 ++--
.../java/org/apache/sling/commons/osgi/SortingServiceTracker.java | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/main/java/org/apache/sling/commons/osgi/RankedServices.java
b/src/main/java/org/apache/sling/commons/osgi/RankedServices.java
index 6a61d82..1ea3e10 100644
--- a/src/main/java/org/apache/sling/commons/osgi/RankedServices.java
+++ b/src/main/java/org/apache/sling/commons/osgi/RankedServices.java
@@ -146,7 +146,7 @@ public final class RankedServices<T> implements Iterable<T>
{
}
/**
- * Update list of sorted services by copying it from the array and making
it unmodifiable.
+ * Update list of sorted services by copying it from the map and making it
unmodifiable.
*/
private void updateSortedServices() {
List<T> copiedList = new ArrayList<>(serviceMap.values());
@@ -193,7 +193,7 @@ public final class RankedServices<T> implements Iterable<T>
{
/**
* Is called when the list of ranked services was changed due to
bundle bindings/unbindings.
- * This method is called within a synchronized block, so it's code
should be kept as efficient as possible.
+ * This method is called within a synchronized block, so its code
should be kept as efficient as possible.
*/
void changed();
}
diff --git
a/src/main/java/org/apache/sling/commons/osgi/SortingServiceTracker.java
b/src/main/java/org/apache/sling/commons/osgi/SortingServiceTracker.java
index ed33a05..fd5554b 100644
--- a/src/main/java/org/apache/sling/commons/osgi/SortingServiceTracker.java
+++ b/src/main/java/org/apache/sling/commons/osgi/SortingServiceTracker.java
@@ -106,8 +106,8 @@ public class SortingServiceTracker<T> extends
ServiceTracker<T, T> {
}
/**
- * Return a sorted list of the services references.
- * @return Service list
+ * Return a sorted list of the service references.
+ * @return Service reference list
*/
public List<ServiceReference<T>> getSortedServiceReferences() {
List<ServiceReference<T>> result = this.sortedReferences;