Declare attributes set just once in constructor as "final"

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
This commit is contained in:
Daniel Calviño Sánchez 2022-11-25 13:13:27 +01:00 committed by Marcel Hibbe (Rebase PR Action)
parent e887fde2a3
commit 5fe9154c9a

View file

@ -9,17 +9,17 @@ import org.webrtc.MediaStream;
import org.webrtc.PeerConnection;
public class ParticipantDisplayItem {
private String baseUrl;
private final String baseUrl;
private String userId;
private String session;
private final String session;
private PeerConnection.IceConnectionState iceConnectionState;
private String nick;
private final String defaultGuestNick;
private String urlForAvatar;
private MediaStream mediaStream;
private String streamType;
private final String streamType;
private boolean streamEnabled;
private EglBase rootEglBase;
private final EglBase rootEglBase;
private boolean isAudioEnabled;
public ParticipantDisplayItem(String baseUrl, String userId, String session, PeerConnection.IceConnectionState iceConnectionState, String nick, String defaultGuestNick, MediaStream mediaStream, String streamType, boolean streamEnabled, EglBase rootEglBase) {