mirror of
https://github.com/google/nomulus
synced 2026-01-11 00:10:36 +00:00
Replace occurrences of Wrapped.valueOf(...) with Wrapped.parseWrapped(...)
where the value will be immediately unboxed anyway.
The change removes small-but-pervasive inefficiencies from creating and
immediately discarding instances of the wrapped value, as well as removing
unnecessary syntax.
More information: []
Tested:
TAP --sample for global presubmit queue
[]
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=189704431
This commit is contained in:
@@ -501,7 +501,7 @@ public class DeleteContactsAndHostsAction implements Runnable {
|
||||
checkNotNull(
|
||||
params.get(PARAM_SERVER_TRANSACTION_ID), "Server transaction id not specified"))
|
||||
.setIsSuperuser(
|
||||
Boolean.valueOf(
|
||||
Boolean.parseBoolean(
|
||||
checkNotNull(params.get(PARAM_IS_SUPERUSER), "Is superuser not specified")))
|
||||
.setRequestedTime(
|
||||
DateTime.parse(
|
||||
|
||||
Reference in New Issue
Block a user