mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-22 01:11:42 +00:00
Fix multiple Java warnings (#6201)
This commit is contained in:
@@ -53,7 +53,6 @@ public class CircularBuffer<T> {
|
||||
* @throws IndexOutOfBoundsException if the index is out of range (index < 0 || index >=
|
||||
* size())
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
public T getLast() {
|
||||
// If there are no elements in the buffer, do nothing
|
||||
if (m_length == 0) {
|
||||
@@ -111,7 +110,6 @@ public class CircularBuffer<T> {
|
||||
* @throws IndexOutOfBoundsException if the index is out of range (index < 0 || index >=
|
||||
* size())
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
public T removeFirst() {
|
||||
// If there are no elements in the buffer, do nothing
|
||||
if (m_length == 0) {
|
||||
@@ -131,7 +129,6 @@ public class CircularBuffer<T> {
|
||||
* @throws IndexOutOfBoundsException if the index is out of range (index < 0 || index >=
|
||||
* size())
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
public T removeLast() {
|
||||
// If there are no elements in the buffer, do nothing
|
||||
if (m_length == 0) {
|
||||
|
||||
Reference in New Issue
Block a user