From c0f629dfbb0b6f61a3fe3481d6c5ec0fa89624c3 Mon Sep 17 00:00:00 2001 From: Enrico Joerns Date: Fri, 29 Aug 2014 12:12:20 +0200 Subject: [PATCH] [cooja] interfaces/IPAddress: Added @Override annotations --- .../java/org/contikios/cooja/interfaces/IPAddress.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/cooja/java/org/contikios/cooja/interfaces/IPAddress.java b/tools/cooja/java/org/contikios/cooja/interfaces/IPAddress.java index 66ae635d3..67fd284e3 100644 --- a/tools/cooja/java/org/contikios/cooja/interfaces/IPAddress.java +++ b/tools/cooja/java/org/contikios/cooja/interfaces/IPAddress.java @@ -202,6 +202,7 @@ public class IPAddress extends MoteInterface { && moteMem.variableExists("uip_ds6_if"); } + @Override public void removed() { super.removed(); if (memMonitor != null) { @@ -215,12 +216,14 @@ public class IPAddress extends MoteInterface { } } + @Override public JPanel getInterfaceVisualizer() { JPanel panel = new JPanel(); final JLabel ipLabel = new JLabel(); Observer observer; this.addObserver(observer = new Observer() { + @Override public void update(Observable obs, Object obj) { if (isVersion4()) { ipLabel.setText("IPv4 address: " + getIPString()); @@ -240,6 +243,7 @@ public class IPAddress extends MoteInterface { return panel; } + @Override public void releaseInterfaceVisualizer(JPanel panel) { Observer observer = (Observer) panel.getClientProperty("intf_obs"); if (observer == null) { @@ -249,10 +253,12 @@ public class IPAddress extends MoteInterface { this.deleteObserver(observer); } + @Override public Collection getConfigXML() { return null; } + @Override public void setConfigXML(Collection configXML, boolean visAvailable) { } }