Decode method return type causes unsafe casts and ambiguous sentinel
Decode method return type causes unsafe casts and ambiguous sentinel: a task in LegoFlow-SWE (Harbor dataset). The decode method returns Object , which forces callers to downcast to the expected span type without type guarantees from the interface. Additionally, when the span type cannot be…
The task
The `decode` method returns `Object`, which forces callers to downcast to the expected span type without type guarantees from the interface. Additionally, when the span type cannot be recognised, the method returns a static `UNKNOWN` object rather than a meaningful value. This makes the API unclear and error-prone,…
Part of Lego-X/LegoFlow-SWE.