diff options
| author | 2016-04-22 10:05:19 +0000 | |
|---|---|---|
| committer | 2016-04-22 10:05:19 +0000 | |
| commit | f7cda8088ec57ab1422f85f08df78e217a9f7094 (patch) | |
| tree | bc3f8012ead8fcbca8b2119914f82c4fea0c2f5c | |
| parent | 1bfc7e5ebf22aac51019937849499f3d7f389db0 (diff) | |
| parent | dbeb6eee5e54c420e64d87a39b2533231fb41c47 (diff) | |
Merge "Avoid redundant Long allocation before unboxing"
| -rw-r--r-- | test/099-vmdebug/src/Main.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/099-vmdebug/src/Main.java b/test/099-vmdebug/src/Main.java index 1be5765155..8068721219 100644 --- a/test/099-vmdebug/src/Main.java +++ b/test/099-vmdebug/src/Main.java @@ -133,7 +133,7 @@ public class Main { System.out.println("Got null string"); return; } - long n = Long.valueOf(s); + long n = Long.parseLong(s); if (n < 0) { System.out.println("Got negative number " + n); } @@ -157,8 +157,8 @@ public class Main { System.out.println("Got bad bucket " + bucket); continue; } - long key = Long.valueOf(kv[0]); - long value = Long.valueOf(kv[1]); + long key = Long.parseLong(kv[0]); + long value = Long.parseLong(kv[1]); if (key < 0 || value < 0) { System.out.println("Got negative key or value " + bucket); continue; |