Make all closable items implement AutoClosable#317
Make all closable items implement AutoClosable#317thenetworkgrinch merged 2 commits intoYet-Another-Software-Suite:devfrom
AutoClosable#317Conversation
|
Why do you make the wrapper classes implement AutoClosable? |
- From WPILIB docs explanation Implementing AutoClosable is the advised way of making objects closable. since it also supports |
|
Thank you for this! I hope to add Unit tests one day and this is a great step in that direction! |
This is for unit testing support in the future
Implements
AutoClosableon allIMUs,Motorsand **_Some_**Encoders`Encoder Exceptions:
Due to these encoders being closed with the motors themselves and not implementing
AutoClosablethemselves, they have an empty comment explaining that in their close method