diff --git a/src/main/java/core/basesyntax/RobotRoute.java b/src/main/java/core/basesyntax/RobotRoute.java index af440857..950d9b1b 100644 --- a/src/main/java/core/basesyntax/RobotRoute.java +++ b/src/main/java/core/basesyntax/RobotRoute.java @@ -46,6 +46,8 @@ public void moveRobot(Robot robot, int toX, int toY) { robot.stepForward(); } break; + default: + break; } } if (startX >= toX & startY >= toY) { @@ -88,6 +90,8 @@ public void moveRobot(Robot robot, int toX, int toY) { robot.stepForward(); } break; + default: + break; } } if (startX >= toX & startY <= toY) { @@ -130,6 +134,8 @@ public void moveRobot(Robot robot, int toX, int toY) { robot.stepForward(); } break; + default: + break; } } if (startX <= toX & startY >= toY) { @@ -172,6 +178,8 @@ public void moveRobot(Robot robot, int toX, int toY) { robot.stepForward(); } break; + default: + break; } } }