Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make constructors public for CombiningEvaluator.And and CombiningEvaluator.Or #1825

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/main/java/org/jsoup/select/CombiningEvaluator.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ void updateNumEvaluators() {
}

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

And(Evaluator... evaluators) {
public And(Evaluator... evaluators) {
this(Arrays.asList(evaluators));
}

Expand All @@ -69,7 +69,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 All @@ -78,9 +78,9 @@ public static final class Or extends CombiningEvaluator {
updateNumEvaluators();
}

Or(Evaluator... evaluators) { this(Arrays.asList(evaluators)); }
public Or(Evaluator... evaluators) { this(Arrays.asList(evaluators)); }

Or() {
public Or() {
super();
}

Expand Down