[wpiutil] Update StructSerializable contract (NFC) (#7441)

Matches ProtobufSerializable.  This is necessary for generic types.
This commit is contained in:
Joseph Eng
2025-09-30 13:57:42 -07:00
committed by GitHub
parent 6447011bc3
commit 5e7e5306df

View File

@@ -10,6 +10,7 @@ import edu.wpi.first.util.WPISerializable;
* Marker interface to indicate a class is serializable using Struct serialization.
*
* <p>While this cannot be enforced by the interface, any class implementing this interface should
* provide a public final static `struct` member variable.
* provide a public final static `struct` member variable, or a static final `getStruct()` method if
* the class is generic.
*/
public interface StructSerializable extends WPISerializable {}