mirror of
https://github.com/google/nomulus.git
synced 2025-05-13 16:07:15 +02:00
Make EppInput.getSingleExtension() return Optional, not @Nullable
This makes it harder to use it incorrectly by accident. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=181795813
This commit is contained in:
parent
fbdb148540
commit
315e6d57bf
21 changed files with 290 additions and 239 deletions
|
@ -151,12 +151,12 @@ public final class DomainInfoFlow implements Flow {
|
|||
if (!gracePeriodStatuses.isEmpty()) {
|
||||
extensions.add(RgpInfoExtension.create(gracePeriodStatuses));
|
||||
}
|
||||
FeeInfoCommandExtensionV06 feeInfo =
|
||||
Optional<FeeInfoCommandExtensionV06> feeInfo =
|
||||
eppInput.getSingleExtension(FeeInfoCommandExtensionV06.class);
|
||||
if (feeInfo != null) { // Fee check was requested.
|
||||
if (feeInfo.isPresent()) { // Fee check was requested.
|
||||
FeeInfoResponseExtensionV06.Builder builder = new FeeInfoResponseExtensionV06.Builder();
|
||||
handleFeeRequest(
|
||||
feeInfo,
|
||||
feeInfo.get(),
|
||||
builder,
|
||||
InternetDomainName.from(targetId),
|
||||
null,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue