mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-26 01:51:41 +00:00
Adds Error Prone as compile time check to java projects (#13)
This commit is contained in:
committed by
Peter Johnson
parent
a834fff7b2
commit
975568c774
@@ -2255,6 +2255,7 @@ public class CANJaguar implements MotorSafety, PIDOutput, CANSpeedController {
|
||||
* @deprecated Use disableControl instead.
|
||||
*/
|
||||
@Override
|
||||
@Deprecated
|
||||
public void stopMotor() {
|
||||
disableControl();
|
||||
m_stopped = true;
|
||||
|
||||
@@ -1255,6 +1255,7 @@ public class CANTalon implements MotorSafety, PIDOutput, PIDSource, CANSpeedCont
|
||||
* @deprecated Use disableControl instead.
|
||||
*/
|
||||
@Override
|
||||
@Deprecated
|
||||
public void stopMotor() {
|
||||
disableControl();
|
||||
m_stopped = true;
|
||||
|
||||
@@ -426,6 +426,7 @@ public class Encoder extends SensorBase implements CounterBase, PIDSource, LiveW
|
||||
* @return Period in seconds of the most recent pulse.
|
||||
* @deprecated Use getRate() in favor of this method.
|
||||
*/
|
||||
@Deprecated
|
||||
public double getPeriod() {
|
||||
double measuredPeriod;
|
||||
if (m_counter != null) {
|
||||
|
||||
@@ -172,6 +172,7 @@ public class PWM extends SensorBase implements LiveWindowSendable {
|
||||
* @deprecated Recommended to set bounds in ms using {@link #setBounds(double, double, double,
|
||||
* double, double)}
|
||||
*/
|
||||
@Deprecated
|
||||
public void setBounds(final int max, final int deadbandMax, final int center,
|
||||
final int deadbandMin, final int min) {
|
||||
m_maxPwm = max;
|
||||
|
||||
@@ -273,6 +273,7 @@ public class Preferences {
|
||||
*
|
||||
* @deprecated backwards compatibility shim
|
||||
*/
|
||||
@Deprecated
|
||||
public void save() {
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user