From 7ad0bb05ed0b7c5d43a74e60f9c5baf2169148bd Mon Sep 17 00:00:00 2001 From: Tech-Expert-Wizard <77369194+Tech-Expert-Wizard@users.noreply.github.com> Date: Sun, 21 Aug 2022 10:00:23 -0400 Subject: [PATCH] Make constructors public Making constructors for CombiningEvaluator.And and CombiningEvaluator.Or public --- src/main/java/org/jsoup/select/CombiningEvaluator.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/org/jsoup/select/CombiningEvaluator.java b/src/main/java/org/jsoup/select/CombiningEvaluator.java index 5a4f599947..9358c3c29d 100644 --- a/src/main/java/org/jsoup/select/CombiningEvaluator.java +++ b/src/main/java/org/jsoup/select/CombiningEvaluator.java @@ -40,11 +40,11 @@ void updateNumEvaluators() { } public static final class And extends CombiningEvaluator { - And(Collection evaluators) { + public And(Collection evaluators) { super(evaluators); } - And(Evaluator... evaluators) { + public And(Evaluator... evaluators) { this(Arrays.asList(evaluators)); } @@ -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 evaluators) { + public Or(Collection evaluators) { super(); if (num > 1) this.evaluators.add(new And(evaluators)); @@ -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(); }