mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
Remove unnecessary boxing (#7539)
* Remove unnecessary boxing Also remove unnecessary warning suppression * Use more idiomatic functional interfaces in NumericalIntegration
This commit is contained in:
@@ -96,8 +96,7 @@ public class PneumaticHub implements PneumaticsBase {
|
||||
|
||||
private static DataStore getForModule(int module) {
|
||||
synchronized (m_handleLock) {
|
||||
Integer moduleBoxed = module;
|
||||
DataStore pcm = m_handleMap.get(moduleBoxed);
|
||||
DataStore pcm = m_handleMap.get(module);
|
||||
if (pcm == null) {
|
||||
pcm = new DataStore(module);
|
||||
}
|
||||
|
||||
@@ -47,8 +47,7 @@ public class PneumaticsControlModule implements PneumaticsBase {
|
||||
|
||||
private static DataStore getForModule(int module) {
|
||||
synchronized (m_handleLock) {
|
||||
Integer moduleBoxed = module;
|
||||
DataStore pcm = m_handleMap.get(moduleBoxed);
|
||||
DataStore pcm = m_handleMap.get(module);
|
||||
if (pcm == null) {
|
||||
pcm = new DataStore(module);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user