mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-27 02:01:42 +00:00
Clean up Java style (#5990)
Also make equivalent changes in C++ where applicable. Co-authored-by: Sriman Achanta <68172138+srimanachanta@users.noreply.github.com>
This commit is contained in:
@@ -14,7 +14,7 @@ import java.util.Deque;
|
||||
public class CleanupPool implements AutoCloseable {
|
||||
// Use a Deque instead of a Stack, as Stack's iterators go the wrong way, and docs
|
||||
// state ArrayDeque is faster anyway.
|
||||
private final Deque<AutoCloseable> m_closers = new ArrayDeque<AutoCloseable>();
|
||||
private final Deque<AutoCloseable> m_closers = new ArrayDeque<>();
|
||||
|
||||
/**
|
||||
* Registers an object in the object stack for cleanup.
|
||||
|
||||
Reference in New Issue
Block a user