Spotbug: make constructor-called methods final

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
Andy Scherzinger 2022-12-28 12:06:48 +01:00
parent 09012cce6a
commit 8b61808fda
No known key found for this signature in database
GPG Key ID: 6CADC7E3523C308B
3 changed files with 3 additions and 3 deletions

View File

@ -152,7 +152,7 @@ public class MagicWebSocketInstance extends WebSocketListener {
resumeId = "";
}
public void restartWebSocket() {
public final void restartWebSocket() {
reconnecting = true;
// TODO when improving logging, keep in mind this issue: https://github.com/nextcloud/talk-android/issues/1013

View File

@ -399,7 +399,7 @@ public class WebRtcAudioManager {
return false;
}
public void updateAudioDeviceState() {
public final void updateAudioDeviceState() {
ThreadUtils.checkIsOnMainThread();
Log.d(TAG, "--- updateAudioDeviceState: "
+ "wired headset=" + hasWiredHeadset + ", "

View File

@ -295,7 +295,7 @@ public class WebRtcBluetoothManager {
/**
* Stubs for test mocks.
*/
protected AudioManager getAudioManager(Context context) {
protected final AudioManager getAudioManager(Context context) {
return (AudioManager) context.getSystemService(Context.AUDIO_SERVICE);
}