Skip to content

Commit b943cfe

Browse files
Apply suggestions from code review
1 parent 8be41b0 commit b943cfe

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

core/src/main/java/gov/nist/secauto/metaschema/core/metapath/DynamicContext.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,9 @@ public void pushExecutionStack(@NonNull IExpression expression) {
326326
*/
327327
public void popExecutionStack(@NonNull IExpression expression) {
328328
IExpression popped = this.sharedState.executionStack.pop();
329-
assert expression.equals(popped);
329+
if (!expression.equals(popped)) {
330+
throw new IllegalStateException("Popped expression does not match expected expression");
331+
}
330332
}
331333

332334
/**

0 commit comments

Comments
 (0)