You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2025/04/19 12:14:25 UTC
(commons-collections) branch master updated: Javadoc
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-collections.git
The following commit(s) were added to refs/heads/master by this push:
new cd8af14ad Javadoc
cd8af14ad is described below
commit cd8af14ad3ce620e20195b21458f01b17e84025f
Author: Gary D. Gregory <ga...@gmail.com>
AuthorDate: Sat Apr 19 08:14:20 2025 -0400
Javadoc
---
.../apache/commons/collections4/list/AbstractLinkedListJava21.java | 7 +++++++
.../apache/commons/collections4/properties/SortedProperties.java | 7 +++++++
2 files changed, 14 insertions(+)
diff --git a/src/main/java/org/apache/commons/collections4/list/AbstractLinkedListJava21.java b/src/main/java/org/apache/commons/collections4/list/AbstractLinkedListJava21.java
index eceb70944..d3a585538 100644
--- a/src/main/java/org/apache/commons/collections4/list/AbstractLinkedListJava21.java
+++ b/src/main/java/org/apache/commons/collections4/list/AbstractLinkedListJava21.java
@@ -551,6 +551,7 @@ public abstract class AbstractLinkedListJava21<E> implements List<E> {
* <p>
* If this constructor is used by a serializable subclass then the init()
* method must be called.
+ * </p>
*/
protected AbstractLinkedListJava21() {
}
@@ -629,6 +630,7 @@ public abstract class AbstractLinkedListJava21<E> implements List<E> {
* <p>
* This implementation uses {@link #createNode(Object)} and
* {@link #addNode(AbstractLinkedListJava21.Node,AbstractLinkedListJava21.Node)}.
+ * </p>
*
* @param node node to insert after
* @param value value of the newly added node
@@ -645,6 +647,7 @@ public abstract class AbstractLinkedListJava21<E> implements List<E> {
* <p>
* This implementation uses {@link #createNode(Object)} and
* {@link #addNode(AbstractLinkedListJava21.Node,AbstractLinkedListJava21.Node)}.
+ * </p>
*
* @param node node to insert before
* @param value value of the newly added node
@@ -724,6 +727,7 @@ public abstract class AbstractLinkedListJava21<E> implements List<E> {
* <p>
* The first serializable subclass must call this method from
* {@code readObject}.
+ * </p>
*
* @param inputStream the stream to read the object from
* @throws IOException if any error occurs while reading from the stream
@@ -743,6 +747,7 @@ public abstract class AbstractLinkedListJava21<E> implements List<E> {
* <p>
* The first serializable subclass must call this method from
* {@code writeObject}.
+ * </p>
*
* @param outputStream the stream to write the object to
* @throws IOException if anything goes wrong
@@ -952,6 +957,7 @@ public abstract class AbstractLinkedListJava21<E> implements List<E> {
* from this list. As a consequence, it is advised to use a collection type for
* {@code coll} that provides a fast (for example O(1)) implementation of
* {@link Collection#contains(Object)}.
+ * </p>
*/
@Override
public boolean removeAll(final Collection<?> coll) {
@@ -1024,6 +1030,7 @@ public abstract class AbstractLinkedListJava21<E> implements List<E> {
* from this list. As a consequence, it is advised to use a collection type for
* {@code coll} that provides a fast (for example O(1)) implementation of
* {@link Collection#contains(Object)}.
+ * </p>
*/
@Override
public boolean retainAll(final Collection<?> coll) {
diff --git a/src/main/java/org/apache/commons/collections4/properties/SortedProperties.java b/src/main/java/org/apache/commons/collections4/properties/SortedProperties.java
index bde1bdc3e..2c1052d68 100644
--- a/src/main/java/org/apache/commons/collections4/properties/SortedProperties.java
+++ b/src/main/java/org/apache/commons/collections4/properties/SortedProperties.java
@@ -42,6 +42,13 @@ public class SortedProperties extends Properties {
private static final long serialVersionUID = 1L;
+ /**
+ * Constructs a new instance.
+ */
+ public SortedProperties() {
+ // empty
+ }
+
@Override
public Set<Map.Entry<Object, Object>> entrySet() {
final Stream<SimpleEntry<Object, Object>> stream = sortedKeys().map(k -> new AbstractMap.SimpleEntry<>(k, getProperty(k)));