mirror of
https://github.com/PhotonVision/photonvision
synced 2026-06-26 01:51:40 +00:00
[photon-lib java] Implement ProtobufSerializable (#1156)
* [photon-lib java] Fix classes with protobuf support not "announcing it" Since they didn't implement `ProtobufSerializable` this meant that most other software didn't even know protobufs were even implemented. In AdvantageKit for example this would cause it to not work it all and crash. * Run `spotlessJavaApply`
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
|
||||
package org.photonvision.targeting;
|
||||
|
||||
import edu.wpi.first.util.protobuf.ProtobufSerializable;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import org.photonvision.common.dataflow.structures.Packet;
|
||||
@@ -24,7 +25,7 @@ import org.photonvision.common.dataflow.structures.PacketSerde;
|
||||
import org.photonvision.targeting.proto.PhotonPipelineResultProto;
|
||||
|
||||
/** Represents a pipeline result from a PhotonCamera. */
|
||||
public class PhotonPipelineResult {
|
||||
public class PhotonPipelineResult implements ProtobufSerializable {
|
||||
private static boolean HAS_WARNED = false;
|
||||
|
||||
// Targets to store.
|
||||
|
||||
Reference in New Issue
Block a user