diff --git a/bramble-core/src/main/java/org/briarproject/bramble/plugin/bluetooth/BluetoothPlugin.java b/bramble-core/src/main/java/org/briarproject/bramble/plugin/bluetooth/BluetoothPlugin.java index 115b3437d3e3034caed5fb7e420204dee863d5cd..ce43261a40d3c0eba7c54c2b3980f0aa132878f7 100644 --- a/bramble-core/src/main/java/org/briarproject/bramble/plugin/bluetooth/BluetoothPlugin.java +++ b/bramble-core/src/main/java/org/briarproject/bramble/plugin/bluetooth/BluetoothPlugin.java @@ -73,6 +73,10 @@ abstract class BluetoothPlugin<SS> implements DuplexPlugin, EventListener { abstract void setEnabledByUs(); + /** + * Returns the local Bluetooth address, or null if no valid address can + * be found. + */ @Nullable abstract String getBluetoothAddress(); @@ -176,7 +180,8 @@ abstract class BluetoothPlugin<SS> implements DuplexPlugin, EventListener { private void updateProperties() { TransportProperties p = callback.getLocalProperties(); - String address = p.get(PROP_ADDRESS), uuid = p.get(PROP_UUID); + String address = p.get(PROP_ADDRESS); + String uuid = p.get(PROP_UUID); boolean changed = false; if (address == null) { address = getBluetoothAddress();