Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Eliminate pointless covariant return in protocol widgets (#1637)
This caused a method in the bytecode that was never used. For example: public final class com.example.redwood.testing.widget.redwoodlayout.ProtocolBox<W> implements app.cash.redwood.protocol.widget.ProtocolNode<W> { - private final app.cash.redwood.layout.widget.Box<W> widget; + private final app.cash.redwood.layout.widget.Box<W> _widget; private final kotlinx.serialization.json.Json json; private final app.cash.redwood.protocol.widget.ProtocolMismatchHandler mismatchHandler; private app.cash.redwood.widget.Widget$Children<W> container; private final kotlinx.serialization.KSerializer<app.cash.redwood.layout.api.Constraint> serializer_0; private final kotlinx.serialization.KSerializer<app.cash.redwood.ui.Margin> serializer_1; private final kotlinx.serialization.KSerializer<app.cash.redwood.layout.api.CrossAxisAlignment> serializer_2; public com.example.redwood.testing.widget.redwoodlayout.ProtocolBox(app.cash.redwood.layout.widget.Box<W>, kotlinx.serialization.json.Json, app.cash.redwood.protocol.widget.ProtocolMismatchHandler); - public app.cash.redwood.layout.widget.Box<W> getWidget(); - public app.cash.redwood.widget.Widget getWidget(); + public app.cash.redwood.widget.Widget<W> getWidget(); public void apply(app.cash.redwood.protocol.PropertyChange, app.cash.redwood.protocol.EventSink); public app.cash.redwood.widget.Widget$Children<W> children-dBpC-2Y(int); public void updateModifier(java.util.List<app.cash.redwood.protocol.ModifierElement>); public void attachTo(app.cash.redwood.widget.Widget$Children<W>); }
- Loading branch information