Skip to content

Commit 8a6df9e

Browse files
committed
ExpressionPropertyCondition constructor should be public
Signed-off-by: ceki <ceki@qos.ch>
1 parent 95e588c commit 8a6df9e

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

logback-core/src/main/java/ch/qos/logback/core/boolex/ExpressionPropertyCondition.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,11 @@
2525
import java.util.function.Function;
2626

2727
/**
28-
* A property condition that evaluates boolean expressions based on property lookups.
29-
* It supports logical operators (NOT, AND, OR) and functions like isNull, isDefined,
28+
* This class evaluates boolean expressions based on property lookups.
29+
* <p>It supports logical operators (NOT, AND, OR) and functions like isNull, isDefined,
3030
* propertyEquals, and propertyContains. Expressions are parsed using the Shunting-Yard
3131
* algorithm into Reverse Polish Notation (RPN) for evaluation.
32+
* </p>
3233
*
3334
* <p>Example expression: {@code isDefined("key1") && propertyEquals("key2", "value")}</p>
3435
*
@@ -137,7 +138,7 @@ public static Token valueOf(char c) {
137138
* Constructs an ExpressionPropertyCondition and initializes the function maps
138139
* with supported unary and binary functions.
139140
*/
140-
ExpressionPropertyCondition() {
141+
public ExpressionPropertyCondition() {
141142
functionMap.put(IS_NULL_FUNCTION_KEY, this::isNull);
142143
functionMap.put(IS_DEFINEDP_FUNCTION_KEY, this::isDefined);
143144
biFunctionMap.put(PROPERTY_EQUALS_FUNCTION_KEY, this::propertyEquals);

0 commit comments

Comments
 (0)