From 80bfbd8ebf0ad8a7ad98584544a0c73f43e6f3b6 Mon Sep 17 00:00:00 2001 From: Daniel Kirschten Date: Wed, 29 May 2019 22:40:39 +0200 Subject: [PATCH] Suppressed warnings where the thing warned about is intentional --- LogicUI/src/era/mi/gui/examples/RSLatchExample.java | 1 + LogicUI/src/era/mi/gui/model/components/GUIComponent.java | 1 + 2 files changed, 2 insertions(+) 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; -- 2.17.1