Skip to content

Commit

Permalink
Make And and Or constructors public
Browse files Browse the repository at this point in the history
Allows composability

Fixes #2214
  • Loading branch information
jhy committed Nov 21, 2024
1 parent f1663b4 commit 708fc1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/jsoup/select/CombiningEvaluator.java
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ void updateEvaluators() {
}

public static final class And extends CombiningEvaluator {
And(Collection<Evaluator> evaluators) {
public And(Collection<Evaluator> evaluators) {
super(evaluators);
}

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

0 comments on commit 708fc1f

Please sign in to comment.