From 0cfc2d6573bd3ac9e3db1d843b01080e339f040c Mon Sep 17 00:00:00 2001 From: Sergeev Viktor Date: Mon, 9 Nov 2026 03:55:36 +0300 Subject: [PATCH] remove unnecessary get class name --- src/main/java/com/dashjoin/jsonata/Jsonata.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/main/java/com/dashjoin/jsonata/Jsonata.java b/src/main/java/com/dashjoin/jsonata/Jsonata.java index d001020..4fa0d3b 100644 --- a/src/main/java/com/dashjoin/jsonata/Jsonata.java +++ b/src/main/java/com/dashjoin/jsonata/Jsonata.java @@ -911,11 +911,7 @@ Object evaluateNumericExpression(Object _lhs, Object _rhs, String op) { Object evaluateEqualityExpression(Object lhs, Object rhs, String op) { Object result = null; - // type checks - var ltype = lhs!=null ? lhs.getClass().getSimpleName() : null; - var rtype = rhs!=null ? rhs.getClass().getSimpleName() : null; - - if (ltype == null || rtype == null) { + if (lhs == null || rhs == null) { // if either side is undefined, the result is false return false; }