From 7d73f25a2fde386fb30d9550f651c23cbc4ec59b Mon Sep 17 00:00:00 2001 From: Peter Osterlund Date: Sat, 18 Apr 2020 02:50:29 +0200 Subject: [PATCH] Remove not needed inheritDoc comments --- .../java/org/petero/droidfish/engine/ExternalEngine.java | 7 ------- .../org/petero/droidfish/engine/InternalStockFish.java | 1 - .../java/org/petero/droidfish/engine/NetworkEngine.java | 7 ------- .../droidfish/engine/cuckoochess/CuckooChessEngine.java | 5 ----- 4 files changed, 20 deletions(-) diff --git a/DroidFishApp/src/main/java/org/petero/droidfish/engine/ExternalEngine.java b/DroidFishApp/src/main/java/org/petero/droidfish/engine/ExternalEngine.java index 26bb3dd..5b46e2a 100644 --- a/DroidFishApp/src/main/java/org/petero/droidfish/engine/ExternalEngine.java +++ b/DroidFishApp/src/main/java/org/petero/droidfish/engine/ExternalEngine.java @@ -67,7 +67,6 @@ public class ExternalEngine extends UCIEngineBase { return context.getFilesDir().getAbsolutePath() + "/internal_sf"; } - /** @inheritDoc */ @Override protected void startProcess() { try { @@ -194,7 +193,6 @@ public class ExternalEngine extends UCIEngineBase { private String syzygyPath = ""; private boolean optionsInitialized = false; - /** @inheritDoc */ @Override public void initOptions(EngineOptions engineOptions) { super.initOptions(engineOptions); @@ -225,7 +223,6 @@ public class ExternalEngine extends UCIEngineBase { return hashMB; } - /** @inheritDoc */ @Override public boolean optionsOk(EngineOptions engineOptions) { if (!optionsInitialized) @@ -239,12 +236,10 @@ public class ExternalEngine extends UCIEngineBase { return true; } - /** @inheritDoc */ @Override public void setStrength(int strength) { } - /** @inheritDoc */ @Override public String readLineFromEngine(int timeoutMillis) { String ret = inLines.readLine(timeoutMillis); @@ -257,7 +252,6 @@ public class ExternalEngine extends UCIEngineBase { } // FIXME!! Writes should be handled by separate thread. - /** @inheritDoc */ @Override public void writeLineToEngine(String data) { // System.out.printf("GUI -> Engine: %s\n", data); @@ -272,7 +266,6 @@ public class ExternalEngine extends UCIEngineBase { } } - /** @inheritDoc */ @Override public void shutDown() { if (startupThread != null) diff --git a/DroidFishApp/src/main/java/org/petero/droidfish/engine/InternalStockFish.java b/DroidFishApp/src/main/java/org/petero/droidfish/engine/InternalStockFish.java index 8a3884e..ce1c290 100644 --- a/DroidFishApp/src/main/java/org/petero/droidfish/engine/InternalStockFish.java +++ b/DroidFishApp/src/main/java/org/petero/droidfish/engine/InternalStockFish.java @@ -56,7 +56,6 @@ public class InternalStockFish extends ExternalEngine { return true; } - /** @inheritDoc */ @Override public final void setStrength(int strength) { setOption("Skill Level", strength/50); diff --git a/DroidFishApp/src/main/java/org/petero/droidfish/engine/NetworkEngine.java b/DroidFishApp/src/main/java/org/petero/droidfish/engine/NetworkEngine.java index 596269d..fc12b15 100644 --- a/DroidFishApp/src/main/java/org/petero/droidfish/engine/NetworkEngine.java +++ b/DroidFishApp/src/main/java/org/petero/droidfish/engine/NetworkEngine.java @@ -108,7 +108,6 @@ public class NetworkEngine extends UCIEngineBase { } } - /** @inheritDoc */ @Override protected void startProcess() { // Start thread to check for startup error @@ -195,7 +194,6 @@ public class NetworkEngine extends UCIEngineBase { private String syzygyPath = ""; private boolean optionsInitialized = false; - /** @inheritDoc */ @Override public void initOptions(EngineOptions engineOptions) { super.initOptions(engineOptions); @@ -213,7 +211,6 @@ public class NetworkEngine extends UCIEngineBase { return new File(fileName + ".ini"); } - /** @inheritDoc */ @Override public boolean optionsOk(EngineOptions engineOptions) { if (isError) @@ -231,12 +228,10 @@ public class NetworkEngine extends UCIEngineBase { return true; } - /** @inheritDoc */ @Override public void setStrength(int strength) { } - /** @inheritDoc */ @Override public String readLineFromEngine(int timeoutMillis) { String ret = engineToGui.readLine(timeoutMillis); @@ -248,14 +243,12 @@ public class NetworkEngine extends UCIEngineBase { return ret; } - /** @inheritDoc */ @Override public void writeLineToEngine(String data) { // System.out.printf("GUI -> Engine: %s\n", data); guiToEngine.addLine(data); } - /** @inheritDoc */ @Override public void shutDown() { isRunning = false; diff --git a/DroidFishApp/src/main/java/org/petero/droidfish/engine/cuckoochess/CuckooChessEngine.java b/DroidFishApp/src/main/java/org/petero/droidfish/engine/cuckoochess/CuckooChessEngine.java index 7b965c9..330d6a2 100644 --- a/DroidFishApp/src/main/java/org/petero/droidfish/engine/cuckoochess/CuckooChessEngine.java +++ b/DroidFishApp/src/main/java/org/petero/droidfish/engine/cuckoochess/CuckooChessEngine.java @@ -57,7 +57,6 @@ public class CuckooChessEngine extends UCIEngineBase { engineToGui = new LocalPipe(); } - /** @inheritDoc */ @Override protected final void startProcess() { engineThread = new Thread(() -> mainLoop(guiToEngine, engineToGui)); @@ -84,13 +83,11 @@ public class CuckooChessEngine extends UCIEngineBase { return true; } - /** @inheritDoc */ @Override public boolean optionsOk(EngineOptions engineOptions) { return true; } - /** @inheritDoc */ @Override public final void setStrength(int strength) { setOption("strength", strength); @@ -112,7 +109,6 @@ public class CuckooChessEngine extends UCIEngineBase { guiToEngine.close(); } - /** @inheritDoc */ @Override public final String readLineFromEngine(int timeoutMillis) { if ((engineThread != null) && !engineThread.isAlive()) @@ -126,7 +122,6 @@ public class CuckooChessEngine extends UCIEngineBase { return ret; } - /** @inheritDoc */ @Override public final synchronized void writeLineToEngine(String data) { // System.out.printf("GUI -> Engine: %s\n", data);