mirror of
https://github.com/google/nomulus.git
synced 2025-07-20 09:46:03 +02:00
Remove unused method from PollMessage.OneTime
This was created during the Registry 2.0 migration for use by a scrap servlet ([] and never removed. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=150325126
This commit is contained in:
parent
d8349aa0ee
commit
4d20490258
1 changed files with 0 additions and 22 deletions
|
@ -15,7 +15,6 @@
|
||||||
package google.registry.model.poll;
|
package google.registry.model.poll;
|
||||||
|
|
||||||
import static google.registry.util.CollectionUtils.forceEmptyToNull;
|
import static google.registry.util.CollectionUtils.forceEmptyToNull;
|
||||||
import static google.registry.util.CollectionUtils.isNullOrEmpty;
|
|
||||||
import static google.registry.util.CollectionUtils.nullToEmpty;
|
import static google.registry.util.CollectionUtils.nullToEmpty;
|
||||||
import static google.registry.util.DateTimeUtils.END_OF_TIME;
|
import static google.registry.util.DateTimeUtils.END_OF_TIME;
|
||||||
import static google.registry.util.PreconditionsUtils.checkArgumentNotNull;
|
import static google.registry.util.PreconditionsUtils.checkArgumentNotNull;
|
||||||
|
@ -32,11 +31,8 @@ import com.googlecode.objectify.annotation.Id;
|
||||||
import com.googlecode.objectify.annotation.Index;
|
import com.googlecode.objectify.annotation.Index;
|
||||||
import com.googlecode.objectify.annotation.Parent;
|
import com.googlecode.objectify.annotation.Parent;
|
||||||
import google.registry.model.Buildable;
|
import google.registry.model.Buildable;
|
||||||
import google.registry.model.EppResource;
|
|
||||||
import google.registry.model.ImmutableObject;
|
import google.registry.model.ImmutableObject;
|
||||||
import google.registry.model.annotations.ExternalMessagingName;
|
import google.registry.model.annotations.ExternalMessagingName;
|
||||||
import google.registry.model.contact.ContactResource;
|
|
||||||
import google.registry.model.domain.DomainBase;
|
|
||||||
import google.registry.model.domain.DomainRenewData;
|
import google.registry.model.domain.DomainRenewData;
|
||||||
import google.registry.model.domain.launch.LaunchInfoResponseExtension;
|
import google.registry.model.domain.launch.LaunchInfoResponseExtension;
|
||||||
import google.registry.model.eppoutput.EppResponse.ResponseData;
|
import google.registry.model.eppoutput.EppResponse.ResponseData;
|
||||||
|
@ -218,24 +214,6 @@ public abstract class PollMessage extends ImmutableObject
|
||||||
.build();
|
.build();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Returns the class of the parent EppResource that this poll message is associated with,
|
|
||||||
* either DomainBase or ContactResource.
|
|
||||||
*/
|
|
||||||
public Class<? extends EppResource> getParentResourceClass() {
|
|
||||||
if (!isNullOrEmpty(domainPendingActionNotificationResponses)
|
|
||||||
|| !isNullOrEmpty(domainTransferResponses)) {
|
|
||||||
return DomainBase.class;
|
|
||||||
} else if (!isNullOrEmpty(contactPendingActionNotificationResponses)
|
|
||||||
|| !isNullOrEmpty(contactTransferResponses)) {
|
|
||||||
return ContactResource.class;
|
|
||||||
} else {
|
|
||||||
throw new IllegalStateException(String.format(
|
|
||||||
"PollMessage.OneTime %s does not correspond with an EppResource of a known type",
|
|
||||||
Key.create(this)));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public ImmutableList<ResponseExtension> getResponseExtensions() {
|
public ImmutableList<ResponseExtension> getResponseExtensions() {
|
||||||
return (launchInfoResponseExtension == null) ? ImmutableList.<ResponseExtension>of() :
|
return (launchInfoResponseExtension == null) ? ImmutableList.<ResponseExtension>of() :
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue