Changed terminology from "Overload" to "Override" (#1563)

This commit is contained in:
Christopher Cantrell
2019-01-25 00:45:05 -06:00
committed by Peter Johnson
parent bd05dfa1c7
commit 7d19596367
4 changed files with 26 additions and 26 deletions

View File

@@ -86,7 +86,7 @@ public abstract class IterativeRobotBase extends RobotBase {
* never indicate that the code is ready, causing the robot to be bypassed in a match.
*/
public void robotInit() {
System.out.println("Default robotInit() method... Overload me!");
System.out.println("Default robotInit() method... Override me!");
}
/**
@@ -96,7 +96,7 @@ public abstract class IterativeRobotBase extends RobotBase {
* robot enters disabled mode.
*/
public void disabledInit() {
System.out.println("Default disabledInit() method... Overload me!");
System.out.println("Default disabledInit() method... Override me!");
}
/**
@@ -106,7 +106,7 @@ public abstract class IterativeRobotBase extends RobotBase {
* robot enters autonomous mode.
*/
public void autonomousInit() {
System.out.println("Default autonomousInit() method... Overload me!");
System.out.println("Default autonomousInit() method... Override me!");
}
/**
@@ -116,7 +116,7 @@ public abstract class IterativeRobotBase extends RobotBase {
* robot enters teleop mode.
*/
public void teleopInit() {
System.out.println("Default teleopInit() method... Overload me!");
System.out.println("Default teleopInit() method... Override me!");
}
/**
@@ -127,7 +127,7 @@ public abstract class IterativeRobotBase extends RobotBase {
*/
@SuppressWarnings("PMD.JUnit4TestShouldUseTestAnnotation")
public void testInit() {
System.out.println("Default testInit() method... Overload me!");
System.out.println("Default testInit() method... Override me!");
}
/* ----------- Overridable periodic code ----------------- */
@@ -139,7 +139,7 @@ public abstract class IterativeRobotBase extends RobotBase {
*/
public void robotPeriodic() {
if (m_rpFirstRun) {
System.out.println("Default robotPeriodic() method... Overload me!");
System.out.println("Default robotPeriodic() method... Override me!");
m_rpFirstRun = false;
}
}
@@ -151,7 +151,7 @@ public abstract class IterativeRobotBase extends RobotBase {
*/
public void disabledPeriodic() {
if (m_dpFirstRun) {
System.out.println("Default disabledPeriodic() method... Overload me!");
System.out.println("Default disabledPeriodic() method... Override me!");
m_dpFirstRun = false;
}
}
@@ -163,7 +163,7 @@ public abstract class IterativeRobotBase extends RobotBase {
*/
public void autonomousPeriodic() {
if (m_apFirstRun) {
System.out.println("Default autonomousPeriodic() method... Overload me!");
System.out.println("Default autonomousPeriodic() method... Override me!");
m_apFirstRun = false;
}
}
@@ -175,7 +175,7 @@ public abstract class IterativeRobotBase extends RobotBase {
*/
public void teleopPeriodic() {
if (m_tpFirstRun) {
System.out.println("Default teleopPeriodic() method... Overload me!");
System.out.println("Default teleopPeriodic() method... Override me!");
m_tpFirstRun = false;
}
}
@@ -188,7 +188,7 @@ public abstract class IterativeRobotBase extends RobotBase {
@SuppressWarnings("PMD.JUnit4TestShouldUseTestAnnotation")
public void testPeriodic() {
if (m_tmpFirstRun) {
System.out.println("Default testPeriodic() method... Overload me!");
System.out.println("Default testPeriodic() method... Override me!");
m_tmpFirstRun = false;
}
}

View File

@@ -55,7 +55,7 @@ public class SampleRobot extends RobotBase {
}
/**
* Disabled should go here. Users should overload this method to run code that should run while
* Disabled should go here. Users should override this method to run code that should run while
* the field is disabled.
*
* <p>Called once each time the robot enters the disabled state.