-
Notifications
You must be signed in to change notification settings - Fork 203
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Java 17 #1440
base: master
Are you sure you want to change the base?
Java 17 #1440
Conversation
This should update code to use new Java 17 features |
I can do that. I'm familiar with instanceof pattern matching and new switch syntax. Are there other things I should look out for? |
Potentially enhanced instanceof to simplify equals methods. |
photon-core/src/main/java/org/photonvision/common/hardware/GPIO/pi/PigpioSocket.java
Outdated
Show resolved
Hide resolved
photon-core/src/main/java/org/photonvision/vision/frame/consumer/MJPGFrameConsumer.java
Show resolved
Hide resolved
photon-core/src/main/java/org/photonvision/vision/pipeline/ArucoPipeline.java
Outdated
Show resolved
Hide resolved
photon-core/src/main/java/org/photonvision/common/configuration/ConfigManager.java
Outdated
Show resolved
Hide resolved
photon-core/src/main/java/org/photonvision/vision/opencv/ContourShape.java
Outdated
Show resolved
Hide resolved
photon-core/src/main/java/org/photonvision/vision/processes/VisionModuleChangeSubscriber.java
Outdated
Show resolved
Hide resolved
Superesedes #1069 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FWIW looks good to me
This isn't a hack? it should be set to 17 tho |
@spacey-sooty You're just too fast! I copy pasted the wrong permalink. This looks like a hack - does JDK 17 just fix this? RE @mcm001 #1094 |
Based off when it was resolved I don't think so? |
You can also steal stuff from #1069. I can rerun Intellij inspection after and do more stuff. It does it all automatically so no need for you to manually implement all the basic stuff yourself (switch cases, instance typing, etc). |
Supersedes #1069 |
…duce nesting hell.
…n/ConfigManager.java Co-authored-by: Jade <[email protected]>
Signed-off-by: Jade Turner <[email protected]>
Signed-off-by: Jade Turner <[email protected]>
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):
Closes #1069