mirror of
https://github.com/google/nomulus
synced 2026-01-07 22:15:30 +00:00
Add Optional types to fix Java 7 WHOIS build breakage
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=145452302
This commit is contained in:
@@ -37,7 +37,7 @@ public class DomainLookupCommand extends DomainOrHostLookupCommand {
|
||||
protected Optional<WhoisResponse> getResponse(InternetDomainName domainName, DateTime now) {
|
||||
final DomainResource domainResource =
|
||||
loadByForeignKey(DomainResource.class, domainName.toString(), now);
|
||||
return Optional.fromNullable(
|
||||
return Optional.<WhoisResponse>fromNullable(
|
||||
domainResource == null ? null : new DomainWhoisResponse(domainResource, now));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -37,7 +37,7 @@ public class NameserverLookupByHostCommand extends DomainOrHostLookupCommand {
|
||||
protected Optional<WhoisResponse> getResponse(InternetDomainName hostName, DateTime now) {
|
||||
final HostResource hostResource =
|
||||
loadByForeignKey(HostResource.class, hostName.toString(), now);
|
||||
return Optional.fromNullable(
|
||||
return Optional.<WhoisResponse>fromNullable(
|
||||
hostResource == null ? null : new NameserverWhoisResponse(hostResource, now));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user