From 60e4fdfa0897b94c003ba3df3b39a16e10c886d1 Mon Sep 17 00:00:00 2001
From: Josep del Rio <joseprio@google.com>
Date: Thu, 7 Mar 2024 16:46:10 +0000
Subject: [PATCH] Remove redudant string conversions

In the review of ag/26174212, an unnecessary string conversion was
identified; this CL corrects that, plus two other instances in
the same function.

Bug: 314732730
Test: Presubmit
Change-Id: Id2b620088e12266f041be864271493ffe7e1a3b1
---
 cmds/hid/src/com/android/commands/hid/Event.java | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/cmds/hid/src/com/android/commands/hid/Event.java b/cmds/hid/src/com/android/commands/hid/Event.java
index 09ed5281a83d..3b022796356b 100644
--- a/cmds/hid/src/com/android/commands/hid/Event.java
+++ b/cmds/hid/src/com/android/commands/hid/Event.java
@@ -121,9 +121,9 @@ public class Event {
 
     public String toString() {
         return "Event{id=" + mId
-            + ", command=" + String.valueOf(mCommand)
-            + ", name=" + String.valueOf(mName)
-            + ", uniq=" + String.valueOf(mUniq)
+            + ", command=" + mCommand
+            + ", name=" + mName
+            + ", uniq=" + mUniq
             + ", descriptor=" + Arrays.toString(mDescriptor)
             + ", vid=" + mVid
             + ", pid=" + mPid
-- 
GitLab