Adds Error Prone as compile time check to java projects (#13)

This commit is contained in:
Jonathan Leitschuh
2016-05-20 13:48:41 -04:00
committed by Peter Johnson
parent a834fff7b2
commit 975568c774
17 changed files with 41 additions and 1 deletions

View File

@@ -2255,6 +2255,7 @@ public class CANJaguar implements MotorSafety, PIDOutput, CANSpeedController {
* @deprecated Use disableControl instead.
*/
@Override
@Deprecated
public void stopMotor() {
disableControl();
m_stopped = true;

View File

@@ -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;

View File

@@ -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) {

View File

@@ -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;

View File

@@ -273,6 +273,7 @@ public class Preferences {
*
* @deprecated backwards compatibility shim
*/
@Deprecated
public void save() {
}
}