diff --git a/wpilibj/src/main/java/edu/wpi/first/wpilibj/shuffleboard/ShuffleboardComponent.java b/wpilibj/src/main/java/edu/wpi/first/wpilibj/shuffleboard/ShuffleboardComponent.java index 73abd72632..39ae6cd9d5 100644 --- a/wpilibj/src/main/java/edu/wpi/first/wpilibj/shuffleboard/ShuffleboardComponent.java +++ b/wpilibj/src/main/java/edu/wpi/first/wpilibj/shuffleboard/ShuffleboardComponent.java @@ -69,6 +69,7 @@ public abstract class ShuffleboardComponent> * @param properties the properties for this component * @return this component */ + @SuppressWarnings("unchecked") public final C withProperties(Map properties) { m_properties = properties; m_metadataDirty = true; @@ -87,6 +88,7 @@ public abstract class ShuffleboardComponent> * @param rowIndex the row in the tab to place this component * @return this component */ + @SuppressWarnings("unchecked") public final C withPosition(int columnIndex, int rowIndex) { m_column = columnIndex; m_row = rowIndex; @@ -102,6 +104,7 @@ public abstract class ShuffleboardComponent> * @param height how many rows high the component should be * @return this component */ + @SuppressWarnings("unchecked") public final C withSize(int width, int height) { m_width = width; m_height = height; diff --git a/wpilibj/src/main/java/edu/wpi/first/wpilibj/shuffleboard/ShuffleboardWidget.java b/wpilibj/src/main/java/edu/wpi/first/wpilibj/shuffleboard/ShuffleboardWidget.java index a04f74fe56..deee4f29bb 100644 --- a/wpilibj/src/main/java/edu/wpi/first/wpilibj/shuffleboard/ShuffleboardWidget.java +++ b/wpilibj/src/main/java/edu/wpi/first/wpilibj/shuffleboard/ShuffleboardWidget.java @@ -39,6 +39,7 @@ abstract class ShuffleboardWidget> * @param widgetType the type of the widget used to display the data * @return this widget object */ + @SuppressWarnings("unchecked") public final W withWidget(String widgetType) { setType(widgetType); return (W) this;