mirror of
https://github.com/PhotonVision/photonvision
synced 2026-06-20 00:51:41 +00:00
Java 17 (#1440)
 JDK 11 References https://github.com/search?q=org%3APhotonVision+jdk-11&type=code JDK 17 References https://github.com/search?q=org%3APhotonVision+jdk-17&type=code TODO List (things we might need to update in other repos): - []ab5fa98d72/photonvision/src/modules/photonvision/start_chroot_script (L29)- []7f8d225445/stage2/01-sys-tweaks/00-packages (L34)- []ab5fa98d72/photonvision/src/modules/photonvision/install.sh (L11)- []a4e7ecb6e3/Makefile (L14)Closes https://github.com/PhotonVision/photonvision/pull/1069 --------- Signed-off-by: Jade Turner <spacey-sooty@proton.me> Co-authored-by: Jade <spacey-sooty@proton.me>
This commit is contained in:
committed by
GitHub
parent
e8efef476b
commit
08c62ab8cd
@@ -31,16 +31,11 @@ public enum VisionLEDMode {
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
switch (this) {
|
||||
case kDefault:
|
||||
return "Default";
|
||||
case kOff:
|
||||
return "Off";
|
||||
case kOn:
|
||||
return "On";
|
||||
case kBlink:
|
||||
return "Blink";
|
||||
}
|
||||
return "";
|
||||
return switch (this) {
|
||||
case kDefault -> "Default";
|
||||
case kOff -> "Off";
|
||||
case kOn -> "On";
|
||||
case kBlink -> "Blink";
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -175,11 +175,10 @@ public class TargetModel {
|
||||
|
||||
@Override
|
||||
public boolean equals(Object obj) {
|
||||
if (this == obj) return true;
|
||||
if (obj instanceof TargetModel) {
|
||||
var o = (TargetModel) obj;
|
||||
return vertices.equals(o.vertices) && isPlanar == o.isPlanar && isSpherical == o.isSpherical;
|
||||
}
|
||||
return false;
|
||||
return this == obj
|
||||
&& obj instanceof TargetModel o
|
||||
&& vertices.equals(o.vertices)
|
||||
&& isPlanar == o.isPlanar
|
||||
&& isSpherical == o.isSpherical;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user