fix: Fix before value write hooks for native value visits

This commit is contained in:
2026-04-26 14:14:35 +02:00
parent ba08635384
commit 837fbe8295
3 changed files with 8 additions and 1 deletions
@@ -71,7 +71,7 @@ public class PathTrackingDataVisitor implements TweedDataVisitor {
@Override
public void visitValue(@Nullable Object value) throws TweedDataUnsupportedValueException {
TweedDataVisitor.super.visitValue(value);
delegate.visitValue(value);
valueVisited();
}
@@ -106,6 +106,7 @@ public class DelegatingTweedDataWriter implements TweedDataWriter {
@Override
public void visitValue(@Nullable Object value) throws TweedDataUnsupportedValueException {
beforeValueWrite();
delegate.visitValue(value);
}