فهرست منبع

Spotbug: make constructor-called methods final

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
Andy Scherzinger 2 سال پیش
والد
کامیت
8b61808fda

+ 1 - 1
app/src/main/java/com/nextcloud/talk/webrtc/MagicWebSocketInstance.java

@@ -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

+ 1 - 1
app/src/main/java/com/nextcloud/talk/webrtc/WebRtcAudioManager.java

@@ -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 + ", "

+ 1 - 1
app/src/main/java/com/nextcloud/talk/webrtc/WebRtcBluetoothManager.java

@@ -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);
     }