mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-29 04:20:20 +00:00
marked getters in Event and Packet as final to prevent overriding by genereated event classes
This commit is contained in:
parent
6278657ebd
commit
2c5fb23477
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user