Suppressed warnings where the thing warned about is intentional
authorDaniel Kirschten <daniel.kirschten@gmx.de>
Wed, 29 May 2019 20:40:39 +0000 (22:40 +0200)
committerDaniel Kirschten <daniel.kirschten@gmx.de>
Wed, 29 May 2019 20:40:39 +0000 (22:40 +0200)
LogicUI/src/era/mi/gui/examples/RSLatchExample.java
LogicUI/src/era/mi/gui/model/components/GUIComponent.java

index 57b5b9c..08c42c5 100644 (file)
@@ -16,6 +16,7 @@ public class RSLatchExample
                SimpleLogicUIStandalone.executeVisualisation(RSLatchExample::createRSLatchExample);
        }
 
                SimpleLogicUIStandalone.executeVisualisation(RSLatchExample::createRSLatchExample);
        }
 
+       @SuppressWarnings("unused") // for GUIWires being created
        public static void createRSLatchExample(ViewModel model)
        {
                GUIManualSwitch rIn = new GUIManualSwitch(model);
        public static void createRSLatchExample(ViewModel model)
        {
                GUIManualSwitch rIn = new GUIManualSwitch(model);
index ccb24a2..b8f49f3 100644 (file)
@@ -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.
         */
         * 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;
        public boolean clicked(double x, double y)
        {
                return false;