mirror of
https://github.com/google/nomulus.git
synced 2025-08-02 16:02:10 +02:00
Refactor Guava functional methods to use lambdas
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=177027488
This commit is contained in:
parent
2ae496bfce
commit
bbe2584da4
47 changed files with 478 additions and 647 deletions
|
@ -23,7 +23,6 @@ import static java.util.Arrays.asList;
|
|||
|
||||
import com.google.common.base.Joiner;
|
||||
import com.google.common.io.ByteSource;
|
||||
import com.googlecode.objectify.Work;
|
||||
import google.registry.model.contact.ContactResource;
|
||||
import google.registry.model.contact.PostalInfo;
|
||||
import google.registry.model.eppcommon.StatusValue;
|
||||
|
@ -191,12 +190,7 @@ public class XjcToContactResourceConverterTest {
|
|||
}
|
||||
|
||||
private static ContactResource convertContactInTransaction(final XjcRdeContact xjcContact) {
|
||||
return ofy().transact(new Work<ContactResource>() {
|
||||
@Override
|
||||
public ContactResource run() {
|
||||
return XjcToContactResourceConverter.convertContact(xjcContact);
|
||||
}
|
||||
});
|
||||
return ofy().transact(() -> XjcToContactResourceConverter.convertContact(xjcContact));
|
||||
}
|
||||
|
||||
private XjcRdeContact loadContactFromRdeXml() throws Exception {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue