Buttons: Some minor cleanups

Removed imports not required anymore and made some class members final
This commit is contained in:
Enrico Joerns 2014-10-31 01:25:10 +01:00
parent b28c593776
commit b5d119babd
5 changed files with 7 additions and 9 deletions

View File

@ -41,9 +41,9 @@ import org.contikios.cooja.mspmote.ESBMote;
*/
@ClassDescription("Button")
public class ESBButton extends Button {
private static Logger logger = Logger.getLogger(ESBButton.class);
private static final Logger logger = Logger.getLogger(ESBButton.class);
private ESBMote mote;
private final ESBMote mote;
public ESBButton(Mote mote) {
super(mote);

View File

@ -31,7 +31,6 @@ package org.contikios.cooja.mspmote.interfaces;
import org.contikios.cooja.ClassDescription;
import org.contikios.cooja.Mote;
import org.contikios.cooja.Simulation;
import org.contikios.cooja.TimeEvent;
import org.contikios.cooja.interfaces.Button;
import org.contikios.cooja.mspmote.MspMote;

View File

@ -38,9 +38,9 @@ import org.contikios.cooja.mspmote.SkyMote;
@ClassDescription("Button")
public class SkyButton extends Button {
private static Logger logger = Logger.getLogger(SkyButton.class);
private static final Logger logger = Logger.getLogger(SkyButton.class);
private SkyMote skyMote;
private final SkyMote skyMote;
public SkyButton(Mote mote) {
super(mote);

View File

@ -59,10 +59,10 @@ import org.contikios.cooja.mote.memory.VarMemory;
* @author Fredrik Osterlind
*/
public class ContikiButton extends Button implements ContikiMoteInterface {
private VarMemory moteMem;
private ContikiMote mote;
private final VarMemory moteMem;
private final ContikiMote mote;
private static Logger logger = Logger.getLogger(ContikiButton.class);
private static final Logger logger = Logger.getLogger(ContikiButton.class);
/**
* Creates an interface to the button at mote.

View File

@ -36,7 +36,6 @@ import java.util.Collection;
import javax.swing.JButton;
import javax.swing.JPanel;
import org.contikios.cooja.*;
import org.contikios.cooja.mspmote.SkyMote;
import org.jdom.Element;
/**