From 638c5b3bb32d4f8563cda2159545dd27e11f4266 Mon Sep 17 00:00:00 2001 From: yesji <55633427+yesji@users.noreply.github.com> Date: Sun, 6 Oct 2019 18:21:32 +0530 Subject: [PATCH] Fixed 3 "switch without 'default' clause." issues (#207) Fixed 3 "switch without 'default' clause." --- .../src/main/java/net/simon987/cubotplugin/CubotLidar.java | 3 +++ .../main/java/net/simon987/npcplugin/VaultWorldGenerator.java | 3 +++ .../java/net/simon987/server/game/objects/GameObject.java | 4 +++- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Plugin Cubot/src/main/java/net/simon987/cubotplugin/CubotLidar.java b/Plugin Cubot/src/main/java/net/simon987/cubotplugin/CubotLidar.java index 89a63d3..0386f37 100644 --- a/Plugin Cubot/src/main/java/net/simon987/cubotplugin/CubotLidar.java +++ b/Plugin Cubot/src/main/java/net/simon987/cubotplugin/CubotLidar.java @@ -125,6 +125,9 @@ public class CubotLidar extends HardwareModule { getCpu().getRegisterSet().getRegister("X").setValue(unit.getWorld().getX()); getCpu().getRegisterSet().getRegister("Y").setValue(unit.getWorld().getY()); break; + + default: + break; } } diff --git a/Plugin NPC/src/main/java/net/simon987/npcplugin/VaultWorldGenerator.java b/Plugin NPC/src/main/java/net/simon987/npcplugin/VaultWorldGenerator.java index 204db43..1911054 100644 --- a/Plugin NPC/src/main/java/net/simon987/npcplugin/VaultWorldGenerator.java +++ b/Plugin NPC/src/main/java/net/simon987/npcplugin/VaultWorldGenerator.java @@ -156,6 +156,9 @@ public class VaultWorldGenerator { map.setTileAt(floorTile, 1, worldSize / 2 - 1); roomCenters.add(new Point(1, worldSize / 2 - 1)); break; + default: + + break; } } diff --git a/Server/src/main/java/net/simon987/server/game/objects/GameObject.java b/Server/src/main/java/net/simon987/server/game/objects/GameObject.java index 49f740c..eac119a 100755 --- a/Server/src/main/java/net/simon987/server/game/objects/GameObject.java +++ b/Server/src/main/java/net/simon987/server/game/objects/GameObject.java @@ -89,6 +89,8 @@ public abstract class GameObject implements JSONSerializable, MongoSerializable case WEST: setX(nextWorld.getWorldSize() - 1); break; + default: + break; } return true; @@ -270,4 +272,4 @@ public abstract class GameObject implements JSONSerializable, MongoSerializable return document; } -} \ No newline at end of file +}