marked getters in Event and Packet as final to prevent overriding by genereated event classes

This commit is contained in:
matthias.ringwald@gmail.com 2014-09-07 09:02:18 +00:00
parent 6278657ebd
commit 2c5fb23477
2 changed files with 5 additions and 5 deletions

View File

@ -10,7 +10,7 @@ public class Event extends Packet {
super(HCI_EVENT_PACKET, 0, packet.getBuffer(), packet.getPayloadLen());
}
public int getEventType(){
public final int getEventType(){
return Util.readByte(data, 0);
}

View File

@ -10,19 +10,19 @@ public class Packet {
protected int packetType;
protected int channel;
public int getPacketType() {
public final int getPacketType() {
return packetType;
}
public byte[] getBuffer() {
public final byte[] getBuffer() {
return data;
}
public int getPayloadLen(){
public final int getPayloadLen(){
return payloadLen;
}
public int getChannel() {
public final int getChannel() {
return channel;
}