Remove getOnlyElement()

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=124846747
This commit is contained in:
Justine Tunney 2016-06-14 09:28:42 -07:00
parent 2a83d122ef
commit c70d167a99

View file

@ -205,7 +205,8 @@ public abstract class DomainBase extends EppResource {
return FluentIterable
.from(nullToEmpty(allContacts))
.filter(IS_REGISTRANT)
.getOnlyElement()
.first()
.get()
.getContactRef();
}