mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-26 15:05:44 +03:00
Replace constant String of length 1 with character
Fixes UCPM_USE_CHARACTER_PARAMETERIZED_METHOD issue from SpotBugs. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
This commit is contained in:
parent
4086499a32
commit
6b032fc55a
1 changed files with 6 additions and 6 deletions
|
@ -2263,16 +2263,16 @@ public class CallActivity extends CallBaseActivity {
|
|||
// need to be serialized twice; first the signaling message, and then the wrapper as a whole. Received
|
||||
// messages, on the other hand, just need to be deserialized once.
|
||||
StringBuilder stringBuilder = new StringBuilder();
|
||||
stringBuilder.append("{")
|
||||
stringBuilder.append('{')
|
||||
.append("\"fn\":\"")
|
||||
.append(StringEscapeUtils.escapeJson(LoganSquare.serialize(ncSignalingMessage)))
|
||||
.append("\"")
|
||||
.append(",")
|
||||
.append('\"')
|
||||
.append(',')
|
||||
.append("\"sessionId\":")
|
||||
.append("\"").append(StringEscapeUtils.escapeJson(callSession)).append("\"")
|
||||
.append(",")
|
||||
.append('\"').append(StringEscapeUtils.escapeJson(callSession)).append('\"')
|
||||
.append(',')
|
||||
.append("\"ev\":\"message\"")
|
||||
.append("}");
|
||||
.append('}');
|
||||
|
||||
List<String> strings = new ArrayList<>();
|
||||
String stringToSend = stringBuilder.toString();
|
||||
|
|
Loading…
Reference in a new issue