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

codacy: inefficient use of StringBuffer.toString using call StringBuffer.length instead

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
Andy Scherzinger 2 жил өмнө
parent
commit
08936279b6

+ 1 - 1
app/src/main/java/com/nextcloud/talk/callbacks/MentionAutocompleteCallback.java

@@ -85,7 +85,7 @@ public class MentionAutocompleteCallback implements AutocompleteCallback<Mention
                                       item.getId(), item.getLabel());
         editable.setSpan(mentionChipSpan,
                          range.getStart(),
-                         range.getStart() + replacementStringBuilder.toString().length(),
+                         range.getStart() + replacementStringBuilder.length(),
                          Spanned.SPAN_INCLUSIVE_INCLUSIVE);