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 1448ec3d4 Javadoc: Close HTML tags
1448ec3d4 is described below
commit 1448ec3d44de8fc287f018acd8c31f21f8e1bce8
Author: Gary Gregory <[email protected]>
AuthorDate: Fri Oct 18 11:37:38 2024 -0400
Javadoc: Close HTML tags
---
.../org/apache/commons/collections4/functors/AllPredicate.java | 2 ++
.../org/apache/commons/collections4/bag/CollectionBagTest.java | 10 ++++++++++
2 files changed, 12 insertions(+)
diff --git
a/src/main/java/org/apache/commons/collections4/functors/AllPredicate.java
b/src/main/java/org/apache/commons/collections4/functors/AllPredicate.java
index a76cb2157..d16f1a73f 100644
--- a/src/main/java/org/apache/commons/collections4/functors/AllPredicate.java
+++ b/src/main/java/org/apache/commons/collections4/functors/AllPredicate.java
@@ -46,6 +46,7 @@ public final class AllPredicate<T> extends
AbstractQuantifierPredicate<T> {
* <p>
* If the collection is size zero, the predicate always returns true.
* If the collection is size one, then that predicate is returned.
+ * </p>
*
* @param <T> the type that the predicate queries
* @param predicates the predicates to check, cloned, not null
@@ -69,6 +70,7 @@ public final class AllPredicate<T> extends
AbstractQuantifierPredicate<T> {
* <p>
* If the array is size zero, the predicate always returns true.
* If the array is size one, then that predicate is returned.
+ * </p>
*
* @param <T> the type that the predicate queries
* @param predicates the predicates to check, cloned, not null
diff --git
a/src/test/java/org/apache/commons/collections4/bag/CollectionBagTest.java
b/src/test/java/org/apache/commons/collections4/bag/CollectionBagTest.java
index de7aa4598..bd6829b72 100644
--- a/src/test/java/org/apache/commons/collections4/bag/CollectionBagTest.java
+++ b/src/test/java/org/apache/commons/collections4/bag/CollectionBagTest.java
@@ -26,7 +26,9 @@ import java.util.Arrays;
import java.util.Collection;
import org.apache.commons.collections4.Bag;
+import org.apache.commons.collections4.Predicate;
import org.apache.commons.collections4.collection.AbstractCollectionTest;
+import org.apache.commons.collections4.functors.NonePredicate;
import org.junit.jupiter.api.Test;
/**
@@ -37,6 +39,14 @@ import org.junit.jupiter.api.Test;
*/
public class CollectionBagTest<T> extends AbstractCollectionTest<T> {
+ @Test
+ public void testAdd_Always() throws Throwable {
+ TreeBag<Predicate<Object>> treeBagOfPredicateOfObject = new
TreeBag<>();
+ CollectionBag<Predicate<Object>> collectionBagOfPredicateOfObject =
new CollectionBag<>(treeBagOfPredicateOfObject);
+ Predicate<Object> predicate0 =
NonePredicate.nonePredicate(collectionBagOfPredicateOfObject);
+ collectionBagOfPredicateOfObject.add(predicate0, 24);
+ }
+
/**
* JUnit constructor.
*/