Skip to content

Commit 708fc1f

Browse files
committed
Make And and Or constructors public
Allows composability Fixes #2214
1 parent f1663b4 commit 708fc1f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/org/jsoup/select/CombiningEvaluator.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ void updateEvaluators() {
6666
}
6767

6868
public static final class And extends CombiningEvaluator {
69-
And(Collection<Evaluator> evaluators) {
69+
public And(Collection<Evaluator> evaluators) {
7070
super(evaluators);
7171
}
7272

@@ -95,7 +95,7 @@ public static final class Or extends CombiningEvaluator {
9595
* Create a new Or evaluator. The initial evaluators are ANDed together and used as the first clause of the OR.
9696
* @param evaluators initial OR clause (these are wrapped into an AND evaluator).
9797
*/
98-
Or(Collection<Evaluator> evaluators) {
98+
public Or(Collection<Evaluator> evaluators) {
9999
super();
100100
if (num > 1)
101101
this.evaluators.add(new And(evaluators));

0 commit comments

Comments
 (0)