String oldVal = annotations.boxed.get(key, null);
if (ValueUtils.notEqual(value, oldVal)) {
events.add(new AnnotationStartEvent(currentLocation, key, oldVal));
open.add(key);
} else if (open.contains(key)) {
events.add(new AnnotationEndEvent(currentLocation, key));
//assert open.contains(key);
open.remove(key);
}
}
});
}
open.each(new Proc() {
@Override
public void apply(String key) {
events.add(new AnnotationEndEvent(finalLocation, key));
}
});
currentLocation = currentLocationBackup;
for (AnnotationEvent ev : events) {