Skip to content
Prev Previous commit
Next Next commit
Merge branch 'main' into null-support
  • Loading branch information
rcosta358 committed Feb 11, 2026
commit 65e938d3fd9681f6e8addeafb1e66142900c43aa
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,8 @@ public <T> void visitCtLocalVariable(CtLocalVariable<T> localVariable) {
if (localVariable.getAssignment() == null) {
// declaration with no assignment
Optional<Predicate> pred = getRefinementFromAnnotation(localVariable);
context.addVarToContext(varName, localVariable.getType(), pred.orElse(new Predicate()), localVariable);
RefinedVariable v = context.addVarToContext(varName, localVariable.getType(), pred.orElse(new Predicate()), localVariable);
getMessageFromAnnotation(localVariable).ifPresent(v::setMessage);
} else {
// declaration with assignment
CtExpression<?> e = localVariable.getAssignment();
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.