diff options
author | Narayan Kamath <narayan@google.com> | 2016-04-15 18:32:45 +0100 |
---|---|---|
committer | Narayan Kamath <narayan@google.com> | 2016-04-18 09:55:59 +0100 |
commit | a09b4d2a611a7606e8fc8c73a24bd941b6fc173f (patch) | |
tree | 01aea7a04f295a771c0145c5f78b7bcb66f194fe /tests/CoreTests/android | |
parent | 988a20a94b71c7a8fdffcfbfe0b0ee0dd58854cb (diff) |
Remove unnecessary allocation+unboxing of objects.
Transforming String->int can be done with 0 allocations
using Integer.parseInt.
bug: 28078871
Change-Id: I8d9f322d7154728849dde61ef282046032858d60
Diffstat (limited to 'tests/CoreTests/android')
-rw-r--r-- | tests/CoreTests/android/core/TestWebServer.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/CoreTests/android/core/TestWebServer.java b/tests/CoreTests/android/core/TestWebServer.java index f73e6ff475ac..2a016cfb4374 100644 --- a/tests/CoreTests/android/core/TestWebServer.java +++ b/tests/CoreTests/android/core/TestWebServer.java @@ -781,7 +781,7 @@ class TestWebServer implements HttpConstants { if (testID.startsWith("test")) { - testNum = Integer.valueOf(testID.substring(4))-1; + testNum = Integer.parseInt(testID.substring(4))-1; } if ((testNum < 0) || (testNum > TestWebData.tests.length - 1)) { |