Skip to content

Commit bb7b9c1

Browse files
committed
Merge pull request #10 from DevFactory/release/consecutive-literal-appends,append-character-with-char-fix-1
pmd:ConsecutiveLiteralAppends, pmd:AppendCharacterWithChar - Consecut…
2 parents 2ff48cc + d382ae9 commit bb7b9c1

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

‎app/src/main/java/com/tzutalin/vision/demo/ObjectDetectActivity.java‎

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -155,13 +155,14 @@ protected void onPostExecute(List<VisionDetRet> rets) {
155155
mListView.add(card);
156156
for (VisionDetRet item : rets) {
157157
StringBuilder sb = new StringBuilder();
158-
sb.append(item.getLabel() + ", Prob:" + item.getConfidence() + " ")
159-
.append("[")
160-
.append("" + item.getLeft() + ",")
161-
.append("" + item.getTop() + ",")
162-
.append("" + item.getRight() + ",")
163-
.append("" + item.getBottom())
164-
.append("]");
158+
sb.append(item.getLabel())
159+
.append(", Prob:").append(item.getConfidence())
160+
.append(" [")
161+
.append(item.getLeft()).append(',')
162+
.append(item.getTop()).append(',')
163+
.append(item.getRight()).append(',')
164+
.append(item.getBottom())
165+
.append(']');
165166
Log.d(TAG, sb.toString());
166167

167168
if (!item.getLabel().equalsIgnoreCase("background")) {

0 commit comments

Comments
 (0)