瀏覽代碼

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

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
Andy Scherzinger 2 年之前
父節點
當前提交
08936279b6
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/src/main/java/com/nextcloud/talk/callbacks/MentionAutocompleteCallback.java

+ 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);