From: Daniel Kirschten Date: Wed, 29 May 2019 20:40:39 +0000 (+0200) Subject: Suppressed warnings where the thing warned about is intentional X-Git-Url: https://mograsim.net/gitweb/?a=commitdiff_plain;ds=sidebyside;h=80bfbd8ebf0ad8a7ad98584544a0c73f43e6f3b6;p=Mograsim.git Suppressed warnings where the thing warned about is intentional --- diff --git a/LogicUI/src/era/mi/gui/examples/RSLatchExample.java b/LogicUI/src/era/mi/gui/examples/RSLatchExample.java index 57b5b9cb..08c42c5d 100644 --- a/LogicUI/src/era/mi/gui/examples/RSLatchExample.java +++ b/LogicUI/src/era/mi/gui/examples/RSLatchExample.java @@ -16,6 +16,7 @@ public class RSLatchExample SimpleLogicUIStandalone.executeVisualisation(RSLatchExample::createRSLatchExample); } + @SuppressWarnings("unused") // for GUIWires being created public static void createRSLatchExample(ViewModel model) { GUIManualSwitch rIn = new GUIManualSwitch(model); diff --git a/LogicUI/src/era/mi/gui/model/components/GUIComponent.java b/LogicUI/src/era/mi/gui/model/components/GUIComponent.java index ccb24a22..b8f49f34 100644 --- a/LogicUI/src/era/mi/gui/model/components/GUIComponent.java +++ b/LogicUI/src/era/mi/gui/model/components/GUIComponent.java @@ -62,6 +62,7 @@ public abstract class GUIComponent * Called when this component is clicked. Absolute coordinates of the click are given. Returns true if this component consumed this * click. */ + @SuppressWarnings({ "static-method", "unused" }) // this method is inteded to be overridden public boolean clicked(double x, double y) { return false;