Эх сурвалжийг харах

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>
Daniel Calviño Sánchez 2 жил өмнө
parent
commit
6b032fc55a

+ 6 - 6
app/src/main/java/com/nextcloud/talk/activities/CallActivity.java

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