mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-04-10 06:44:32 +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());
|
super(HCI_EVENT_PACKET, 0, packet.getBuffer(), packet.getPayloadLen());
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getEventType(){
|
public final int getEventType(){
|
||||||
return Util.readByte(data, 0);
|
return Util.readByte(data, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -10,19 +10,19 @@ public class Packet {
|
|||||||
protected int packetType;
|
protected int packetType;
|
||||||
protected int channel;
|
protected int channel;
|
||||||
|
|
||||||
public int getPacketType() {
|
public final int getPacketType() {
|
||||||
return packetType;
|
return packetType;
|
||||||
}
|
}
|
||||||
|
|
||||||
public byte[] getBuffer() {
|
public final byte[] getBuffer() {
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getPayloadLen(){
|
public final int getPayloadLen(){
|
||||||
return payloadLen;
|
return payloadLen;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getChannel() {
|
public final int getChannel() {
|
||||||
return channel;
|
return channel;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user