mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-22 10:30:13 +00:00
Buttons: Some minor cleanups
Removed imports not required anymore and made some class members final
This commit is contained in:
parent
b28c593776
commit
b5d119babd
@ -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);
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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);
|
||||
|
@ -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.
|
||||
|
@ -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;
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user