mirror of
https://github.com/google/nomulus.git
synced 2025-05-12 22:38:16 +02:00
Handle nullness properly in some message/flow/poll code
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=127543268
This commit is contained in:
parent
eed319990a
commit
71ab4a648b
7 changed files with 27 additions and 10 deletions
|
@ -47,6 +47,7 @@ import google.registry.model.poll.PendingActionNotificationResponse.ContactPendi
|
|||
import google.registry.model.poll.PendingActionNotificationResponse.DomainPendingActionNotificationResponse;
|
||||
import google.registry.model.transfer.TransferResponse.ContactTransferResponse;
|
||||
import google.registry.model.transfer.TransferResponse.DomainTransferResponse;
|
||||
import javax.annotation.Nullable;
|
||||
import javax.xml.bind.annotation.XmlElement;
|
||||
import javax.xml.bind.annotation.XmlElementRef;
|
||||
import javax.xml.bind.annotation.XmlElementRefs;
|
||||
|
@ -187,12 +188,12 @@ public class EppResponse extends ImmutableObject implements ResponseOrGreeting {
|
|||
return this;
|
||||
}
|
||||
|
||||
public Builder setResData(ImmutableList<? extends ResponseData> resData) {
|
||||
public Builder setResData(@Nullable ImmutableList<? extends ResponseData> resData) {
|
||||
getInstance().resData = resData;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder setExtensions(ImmutableList<? extends ResponseExtension> extensions) {
|
||||
public Builder setExtensions(@Nullable ImmutableList<? extends ResponseExtension> extensions) {
|
||||
getInstance().extensions = extensions;
|
||||
return this;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue