Skip to content
This repository has been archived by the owner on Jul 10, 2024. It is now read-only.

Commit

Permalink
PROC-1444: Fix check
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharygoodwin committed Feb 29, 2024
1 parent 5508c89 commit f7c321a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import javax.el.ValueReference;
import javax.el.VariableMapper;
import java.util.Map;
import java.util.Objects;

/**
* A nice tidy packaging of javax.el stuff.
Expand Down Expand Up @@ -172,7 +173,7 @@ static void checkRuleIsBooleanType(
Class<?> type = ve.getType(elContext);

// if object is map check what the base value type is
if (type.equals(Object.class)) {
if (Objects.equals(type, Object.class)) {
final ValueReference valueReference = ve.getValueReference(elContext);
final Object base = valueReference.getBase();
final Object property = valueReference.getProperty();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -212,11 +212,6 @@ public void testElExpressionsShouldBeAvailableNestedMap() {
}
}

@Test
public void testDummy() {
assertFalse(Object.class.equals(Map.class));
}

@Test
public void testElExpressionsShouldBeAvailableNestedMapErrors() {
final Map<String, Map<String, String>> traits =
Expand Down

0 comments on commit f7c321a

Please sign in to comment.