mirror of
https://github.com/google/nomulus.git
synced 2025-06-27 14:54:51 +02:00
Remove trailing whitespace in files
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=135386752
This commit is contained in:
parent
d02d30a4cd
commit
e864fedab1
60 changed files with 105 additions and 106 deletions
|
@ -41,7 +41,7 @@ public class BackupUtils {
|
|||
}
|
||||
|
||||
/**
|
||||
* Converts the given {@link ImmutableObject} to a raw datastore entity and write it to an
|
||||
* Converts the given {@link ImmutableObject} to a raw datastore entity and write it to an
|
||||
* {@link OutputStream} in delimited protocol buffer format.
|
||||
*/
|
||||
static void serializeEntity(ImmutableObject entity, OutputStream stream) throws IOException {
|
||||
|
|
|
@ -54,7 +54,7 @@ public class DnsQueue {
|
|||
@Inject @Config("dnsWriteLockTimeout") Duration writeLockTimeout;
|
||||
@Inject @Named(DNS_PULL_QUEUE_NAME) Queue queue;
|
||||
@Inject DnsQueue() {}
|
||||
|
||||
|
||||
long writeBatchSize = QueueConstants.maxLeaseCount();
|
||||
|
||||
/**
|
||||
|
|
|
@ -98,7 +98,7 @@ public final class ReadDnsQueueAction implements Runnable {
|
|||
.result();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/** Leases all tasks from the pull queue and creates per-tld update actions for them. */
|
||||
@Override
|
||||
public void run() {
|
||||
|
|
|
@ -134,7 +134,7 @@ public class DnsUpdateWriter implements DnsWriter {
|
|||
throw new RuntimeException("publishDomain failed: " + domainName, e);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void publishDomain(String domainName) {
|
||||
publishDomain(domainName, null);
|
||||
|
|
|
@ -161,7 +161,7 @@ public class DomainCreateFlow extends DomainCreateOrAllocateFlow {
|
|||
.setParent(historyEntry)
|
||||
.build();
|
||||
ofy().save().entity(createEvent);
|
||||
|
||||
|
||||
// Bill for EAP cost, if any.
|
||||
if (!commandOperations.getEapCost().isZero()) {
|
||||
BillingEvent.OneTime eapEvent =
|
||||
|
|
|
@ -32,7 +32,7 @@ public interface RegistryExtraFlowLogic {
|
|||
public List<String> getExtensionFlags(
|
||||
DomainResource domainResource, String clientId, DateTime asOfDate);
|
||||
|
||||
/** Computes the expected creation fee, for use in fee challenges and the like. */
|
||||
/** Computes the expected creation fee, for use in fee challenges and the like. */
|
||||
public BaseFee getCreateFeeOrCredit(
|
||||
String domainName,
|
||||
String clientId,
|
||||
|
@ -63,7 +63,7 @@ public interface RegistryExtraFlowLogic {
|
|||
EppInput eppInput,
|
||||
HistoryEntry historyEntry) throws EppException;
|
||||
|
||||
/** Computes the expected renewal fee, for use in fee challenges and the like. */
|
||||
/** Computes the expected renewal fee, for use in fee challenges and the like. */
|
||||
public BaseFee getRenewFeeOrCredit(
|
||||
DomainResource domain,
|
||||
String clientId,
|
||||
|
@ -106,7 +106,7 @@ public interface RegistryExtraFlowLogic {
|
|||
EppInput eppInput,
|
||||
HistoryEntry historyEntry) throws EppException;
|
||||
|
||||
/** Computes the expected update fee, for use in fee challenges and the like. */
|
||||
/** Computes the expected update fee, for use in fee challenges and the like. */
|
||||
public BaseFee getUpdateFeeOrCredit(
|
||||
DomainResource domain,
|
||||
String clientId,
|
||||
|
|
|
@ -48,7 +48,7 @@ public class RegistryExtraFlowLogicProxy {
|
|||
return newInstanceForTld(domain.getTld());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public static Optional<RegistryExtraFlowLogic>
|
||||
newInstanceForTld(String tld) throws EppException {
|
||||
if (extraLogicOverrideMap.containsKey(tld)) {
|
||||
|
|
|
@ -256,7 +256,7 @@ public final class TldSpecificLogicProxy {
|
|||
} else {
|
||||
feeOrCredit = Fee.create(Money.zero(registry.getCurrency()).getAmount(), FeeType.UPDATE);
|
||||
}
|
||||
|
||||
|
||||
return new EppCommandOperations(currency, feeOrCredit);
|
||||
}
|
||||
|
||||
|
@ -268,7 +268,7 @@ public final class TldSpecificLogicProxy {
|
|||
/**
|
||||
* Checks whether a {@link Create} command has a valid {@link LrpToken} for a particular TLD, and
|
||||
* return that token (wrapped in an {@link Optional}) if one exists.
|
||||
*
|
||||
*
|
||||
* <p>This method has no knowledge of whether or not an auth code (interpreted here as an LRP
|
||||
* token) has already been checked against the reserved list for QLP (anchor tenant), as auth
|
||||
* codes are used for both types of registrations.
|
||||
|
|
|
@ -134,7 +134,7 @@ public class DirectoryGroupsConnection implements GroupsConnection {
|
|||
} while (!Strings.isNullOrEmpty(listRequest.getPageToken()));
|
||||
return allMembers.build();
|
||||
} catch (GoogleJsonResponseException e) {
|
||||
if (e.getDetails() != null
|
||||
if (e.getDetails() != null
|
||||
&& e.getDetails().getCode() == SC_NOT_FOUND
|
||||
&& e.getDetails().getMessage().equals(GROUP_NOT_FOUND_MSG)) {
|
||||
return ImmutableSet.of();
|
||||
|
|
|
@ -103,7 +103,7 @@ public class Cursor extends ImmutableObject {
|
|||
|
||||
/**
|
||||
* Checks that the type of the scoped object (or null) matches the required type for the specified
|
||||
* cursor (or null, if the cursor is a global cursor).
|
||||
* cursor (or null, if the cursor is a global cursor).
|
||||
*/
|
||||
private static void checkValidCursorTypeForScope(
|
||||
CursorType cursorType, Key<? extends ImmutableObject> scope) {
|
||||
|
@ -160,12 +160,12 @@ public class Cursor extends ImmutableObject {
|
|||
}
|
||||
|
||||
/**
|
||||
* Returns the current time for a given cursor, or {@code START_OF_TIME} if the cursor is null.
|
||||
* Returns the current time for a given cursor, or {@code START_OF_TIME} if the cursor is null.
|
||||
*/
|
||||
public static DateTime getCursorTimeOrStartOfTime(Cursor cursor) {
|
||||
return cursor != null ? cursor.getCursorTime() : START_OF_TIME;
|
||||
}
|
||||
|
||||
|
||||
public DateTime getCursorTime() {
|
||||
return cursorTime;
|
||||
}
|
||||
|
|
|
@ -73,7 +73,7 @@ public class TimeOfYear extends ImmutableObject {
|
|||
/**
|
||||
* Returns an {@link Iterable} of {@link DateTime}s of every recurrence of this particular
|
||||
* time of year within a given {@link Range} (usually one spanning many years).
|
||||
*
|
||||
*
|
||||
* <p>WARNING: This can return a potentially very large {@link Iterable} if {@code END_OF_TIME}
|
||||
* is used as the upper endpoint of the range.
|
||||
*/
|
||||
|
|
|
@ -171,7 +171,7 @@ public class TimedTransitionProperty<V, T extends TimedTransitionProperty.TimedT
|
|||
|
||||
/**
|
||||
* Validates a new set of transitions and returns the resulting TimedTransitionProperty map.
|
||||
*
|
||||
*
|
||||
* @param newTransitions map from date time to transition value
|
||||
* @param transitionClass the class of transitions in this map
|
||||
* @param allowedTransitions optional map of all possible state-to-state transitions
|
||||
|
|
|
@ -24,11 +24,11 @@ import google.registry.model.ImmutableObject;
|
|||
public class DomainObjectSpec extends ImmutableObject {
|
||||
|
||||
final String name;
|
||||
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
|
||||
public DomainObjectSpec(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
|
|
@ -116,7 +116,7 @@ public class GracePeriod extends ImmutableObject {
|
|||
return instance;
|
||||
}
|
||||
|
||||
/**
|
||||
/**
|
||||
* Creates a GracePeriod for an (optional) OneTime billing event.
|
||||
*
|
||||
* <p>Normal callers should always use {@link #forBillingEvent} instead, assuming they do not
|
||||
|
|
|
@ -25,7 +25,6 @@ import com.googlecode.objectify.annotation.Index;
|
|||
import google.registry.model.BackupGroupRoot;
|
||||
import google.registry.model.Buildable;
|
||||
import google.registry.model.reporting.HistoryEntry;
|
||||
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
|
||||
|
@ -89,7 +88,7 @@ public class LrpToken extends BackupGroupRoot implements Buildable {
|
|||
public Map<String, String> getMetadata() {
|
||||
return nullToEmptyImmutableCopy(metadata);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public Builder asBuilder() {
|
||||
return new Builder(clone(this));
|
||||
|
@ -112,7 +111,7 @@ public class LrpToken extends BackupGroupRoot implements Buildable {
|
|||
getInstance().token = checkArgumentNotNull(token);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
public Builder setRedemptionHistoryEntry(Key<HistoryEntry> redemptionHistoryEntry) {
|
||||
getInstance().redemptionHistoryEntry = checkArgumentNotNull(redemptionHistoryEntry);
|
||||
return this;
|
||||
|
|
|
@ -41,7 +41,7 @@ public abstract class BaseFee extends ImmutableObject {
|
|||
@XmlEnumValue("delayed")
|
||||
DELAYED
|
||||
}
|
||||
|
||||
|
||||
/** Enum for the type of the fee. */
|
||||
public enum FeeType {
|
||||
CREATE("create"),
|
||||
|
@ -80,7 +80,7 @@ public abstract class BaseFee extends ImmutableObject {
|
|||
|
||||
@XmlTransient
|
||||
FeeType type;
|
||||
|
||||
|
||||
@XmlTransient
|
||||
Range<DateTime> validDateRange;
|
||||
|
||||
|
@ -104,21 +104,21 @@ public abstract class BaseFee extends ImmutableObject {
|
|||
* According to the fee extension specification, a fee must always be non-negative, while a credit
|
||||
* must always be negative. Essentially, they are the same thing, just with different sign.
|
||||
* However, we need them to be separate classes for proper JAXB handling.
|
||||
*
|
||||
*
|
||||
* @see "https://tools.ietf.org/html/draft-brown-epp-fees-03#section-2.4"
|
||||
*/
|
||||
public BigDecimal getCost() {
|
||||
return cost;
|
||||
}
|
||||
|
||||
|
||||
public FeeType getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
|
||||
public boolean hasValidDateRange() {
|
||||
return validDateRange != null;
|
||||
}
|
||||
|
||||
|
||||
public Range<DateTime> getValidDateRange() {
|
||||
checkState(hasValidDateRange());
|
||||
return validDateRange;
|
||||
|
@ -128,7 +128,7 @@ public abstract class BaseFee extends ImmutableObject {
|
|||
checkState(type != null);
|
||||
description = type.renderDescription(args);
|
||||
}
|
||||
|
||||
|
||||
public boolean hasZeroCost() {
|
||||
return cost.signum() == 0;
|
||||
}
|
||||
|
|
|
@ -26,7 +26,7 @@ public interface FeeCheckCommandExtensionItem extends FeeQueryCommandExtensionIt
|
|||
|
||||
/** The domain name being checked; throws an exception if domain names are not supported. */
|
||||
public String getDomainName() throws UnsupportedOperationException;
|
||||
|
||||
|
||||
/** Create a builder for a matching fee check response item. */
|
||||
public FeeCheckResponseExtensionItem.Builder createResponseBuilder();
|
||||
}
|
||||
|
|
|
@ -32,6 +32,6 @@ public interface FeeCheckResponseExtension<F extends FeeCheckResponseExtensionIt
|
|||
* extension, this function has not effect.
|
||||
*/
|
||||
public void setCurrencyIfSupported(CurrencyUnit currency);
|
||||
|
||||
|
||||
public ImmutableList<F> getItems();
|
||||
}
|
||||
|
|
|
@ -56,7 +56,7 @@ public class FeeExtensionCommandDescriptor extends ImmutableObject {
|
|||
}
|
||||
return CommandName.UNKNOWN;
|
||||
}
|
||||
|
||||
|
||||
public static FeeExtensionCommandDescriptor
|
||||
create(CommandName commandName, String phase, String subphase) {
|
||||
FeeExtensionCommandDescriptor commandDescriptor = new FeeExtensionCommandDescriptor();
|
||||
|
|
|
@ -42,13 +42,13 @@ public abstract class FeeQueryCommandExtensionItemImpl
|
|||
public CommandName getCommandName() {
|
||||
return command.getCommand();
|
||||
}
|
||||
|
||||
|
||||
/** The command name before being parsed into an enum, for use in error strings. */
|
||||
@Override
|
||||
public String getUnparsedCommandName() {
|
||||
return command.getUnparsedCommandName();
|
||||
}
|
||||
|
||||
|
||||
/** The phase of the command being checked. */
|
||||
@Override
|
||||
public String getPhase() {
|
||||
|
|
|
@ -58,11 +58,11 @@ public interface FeeQueryResponseExtensionItem {
|
|||
public Builder setNotAfterDateIfSupported(DateTime notAfterDate);
|
||||
|
||||
public Builder setCommand(CommandName commandName, String phase, String subphase);
|
||||
|
||||
|
||||
public Builder setPeriod(Period period);
|
||||
|
||||
public Builder setFees(List<Fee> fees);
|
||||
|
||||
|
||||
public Builder setClass(String feeClass);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -64,7 +64,7 @@ public class FeeQueryResponseExtensionItemImpl
|
|||
public abstract static class
|
||||
Builder<T extends FeeQueryResponseExtensionItemImpl, B extends Builder<?, ?>>
|
||||
extends GenericBuilder<T, B> implements FeeQueryResponseExtensionItem.Builder {
|
||||
|
||||
|
||||
@Override
|
||||
public B setCommand(CommandName commandName, String phase, String subphase) {
|
||||
getInstance().command = FeeExtensionCommandDescriptor.create(commandName, phase, subphase);
|
||||
|
|
|
@ -38,7 +38,7 @@ public class FeeTransformResponseExtensionImpl extends ImmutableObject
|
|||
*/
|
||||
@XmlElement(name = "fee")
|
||||
List<Fee> fees;
|
||||
|
||||
|
||||
@XmlElement(name = "credit")
|
||||
List<Credit> credits;
|
||||
|
||||
|
@ -46,7 +46,7 @@ public class FeeTransformResponseExtensionImpl extends ImmutableObject
|
|||
public abstract static class
|
||||
Builder<T extends FeeTransformResponseExtensionImpl, B extends Builder<?, ?>>
|
||||
extends GenericBuilder<T, B> implements FeeTransformResponseExtension.Builder {
|
||||
|
||||
|
||||
@Override
|
||||
public B setCurrency(CurrencyUnit currency) {
|
||||
getInstance().currency = currency;
|
||||
|
|
|
@ -40,12 +40,12 @@ public class FeeTransformResponseExtensionImplNoCredits extends ImmutableObject
|
|||
*/
|
||||
@XmlElement(name = "fee")
|
||||
List<Fee> fees;
|
||||
|
||||
|
||||
/** Abstract builder for {@link FeeTransformResponseExtensionImplNoCredits}. */
|
||||
public abstract static class
|
||||
Builder<T extends FeeTransformResponseExtensionImplNoCredits, B extends Builder<?, ?>>
|
||||
extends GenericBuilder<T, B> implements FeeTransformResponseExtension.Builder {
|
||||
|
||||
|
||||
@Override
|
||||
public B setCurrency(CurrencyUnit currency) {
|
||||
getInstance().currency = currency;
|
||||
|
|
|
@ -26,31 +26,31 @@ public class FeeCheckResponseExtensionItemV06
|
|||
extends FeeQueryResponseExtensionItemImpl implements FeeCheckResponseExtensionItem {
|
||||
/** The name of the domain that was checked, with an attribute indicating if it is premium. */
|
||||
String name;
|
||||
|
||||
|
||||
CurrencyUnit currency;
|
||||
|
||||
/** Builder for {@link FeeCheckResponseExtensionItemV06}. */
|
||||
public static class Builder
|
||||
extends FeeQueryResponseExtensionItemImpl.Builder<FeeCheckResponseExtensionItemV06, Builder>
|
||||
implements FeeCheckResponseExtensionItem.Builder {
|
||||
|
||||
|
||||
@Override
|
||||
public Builder setDomainNameIfSupported(String name) {
|
||||
getInstance().name = name;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public Builder setCurrencyIfSupported(CurrencyUnit currency) {
|
||||
getInstance().currency = currency;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public Builder setAvailIfSupported(boolean avail) {
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public Builder setReasonIfSupported(String reason) {
|
||||
return this;
|
||||
|
|
|
@ -23,7 +23,7 @@ import javax.xml.bind.annotation.XmlRootElement;
|
|||
import org.joda.money.CurrencyUnit;
|
||||
|
||||
/**
|
||||
* An XML data object that represents version 0.6 of the fee extension that may be present on the
|
||||
* An XML data object that represents version 0.6 of the fee extension that may be present on the
|
||||
* response to EPP domain check commands.
|
||||
*/
|
||||
@XmlRootElement(name = "chkData")
|
||||
|
@ -33,7 +33,7 @@ public class FeeCheckResponseExtensionV06
|
|||
/** Check responses. */
|
||||
@XmlElement(name = "cd")
|
||||
ImmutableList<FeeCheckResponseExtensionItemV06> items;
|
||||
|
||||
|
||||
@Override
|
||||
public void setCurrencyIfSupported(CurrencyUnit currency) {
|
||||
}
|
||||
|
|
|
@ -25,7 +25,7 @@ import javax.xml.bind.annotation.XmlType;
|
|||
@XmlType(propOrder = {"currency", "fees"})
|
||||
public class FeeCreateCommandExtensionV06
|
||||
extends FeeTransformCommandExtensionImplNoCredits implements FeeTransformCommandExtension {
|
||||
|
||||
|
||||
@Override
|
||||
public FeeTransformResponseExtension.Builder createResponseBuilder() {
|
||||
return new FeeCreateResponseExtensionV06.Builder();
|
||||
|
|
|
@ -35,7 +35,7 @@ public class FeeInfoCommandExtensionV06
|
|||
public CurrencyUnit getCurrency() {
|
||||
return currency;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public Optional<DateTime> getEffectiveDate() {
|
||||
return Optional.absent();
|
||||
|
|
|
@ -30,18 +30,18 @@ import org.joda.time.DateTime;
|
|||
@XmlType(propOrder = {"currency", "command", "period", "fee", "feeClass"})
|
||||
public class FeeInfoResponseExtensionV06
|
||||
extends FeeQueryResponseExtensionItemImpl implements ResponseExtension {
|
||||
|
||||
|
||||
CurrencyUnit currency;
|
||||
|
||||
|
||||
/** Builder for {@link FeeInfoResponseExtensionV06}. */
|
||||
public static class Builder
|
||||
extends FeeQueryResponseExtensionItemImpl.Builder<FeeInfoResponseExtensionV06, Builder> {
|
||||
|
||||
|
||||
@Override
|
||||
public Builder setAvailIfSupported(boolean avail) {
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public Builder setReasonIfSupported(String reason) {
|
||||
return this;
|
||||
|
|
|
@ -25,7 +25,7 @@ import javax.xml.bind.annotation.XmlType;
|
|||
@XmlType(propOrder = {"currency", "fees"})
|
||||
public class FeeRenewCommandExtensionV06
|
||||
extends FeeTransformCommandExtensionImplNoCredits implements FeeTransformCommandExtension {
|
||||
|
||||
|
||||
@Override
|
||||
public FeeTransformResponseExtension.Builder createResponseBuilder() {
|
||||
return new FeeRenewResponseExtensionV06.Builder();
|
||||
|
|
|
@ -25,7 +25,7 @@ import javax.xml.bind.annotation.XmlType;
|
|||
@XmlType(propOrder = {"currency", "fees"})
|
||||
public class FeeTransferCommandExtensionV06
|
||||
extends FeeTransformCommandExtensionImplNoCredits implements FeeTransformCommandExtension {
|
||||
|
||||
|
||||
@Override
|
||||
public FeeTransformResponseExtension.Builder createResponseBuilder() {
|
||||
return new FeeTransferResponseExtensionV06.Builder();
|
||||
|
|
|
@ -25,7 +25,7 @@ import javax.xml.bind.annotation.XmlType;
|
|||
@XmlType(propOrder = {"currency", "fees"})
|
||||
public class FeeUpdateCommandExtensionV06
|
||||
extends FeeTransformCommandExtensionImplNoCredits implements FeeTransformCommandExtension {
|
||||
|
||||
|
||||
@Override
|
||||
public FeeTransformResponseExtension.Builder createResponseBuilder() {
|
||||
return new FeeUpdateResponseExtensionV06.Builder();
|
||||
|
|
|
@ -66,7 +66,7 @@ public class FeeCheckCommandExtensionV11 extends ImmutableObject
|
|||
// This version of the fee extension does not have any items, and although the currency is
|
||||
// specified at the top level we've modeled it as a single fake item with the currency inside,
|
||||
// so there's no top level currency to return here.
|
||||
return null;
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -138,7 +138,7 @@ public class FeeCheckCommandExtensionV11 extends ImmutableObject
|
|||
public Builder createResponseBuilder() {
|
||||
return new FeeCheckResponseExtensionItemV11.Builder();
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public Optional<DateTime> getEffectiveDate() {
|
||||
return Optional.absent();
|
||||
|
|
|
@ -33,35 +33,35 @@ public class FeeCheckResponseExtensionItemV11
|
|||
|
||||
/** The domain that was checked. */
|
||||
DomainObjectSpec object;
|
||||
|
||||
|
||||
CurrencyUnit currency;
|
||||
|
||||
/** The reason that the check item cannot be calculated. */
|
||||
String reason;
|
||||
|
||||
|
||||
/** Builder for {@link FeeCheckResponseExtensionItemV11}. */
|
||||
public static class Builder
|
||||
extends FeeQueryResponseExtensionItemImpl.Builder<FeeCheckResponseExtensionItemV11, Builder>
|
||||
implements FeeCheckResponseExtensionItem.Builder {
|
||||
|
||||
|
||||
@Override
|
||||
public Builder setDomainNameIfSupported(String name) {
|
||||
getInstance().object = new DomainObjectSpec(name);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public Builder setCurrencyIfSupported(CurrencyUnit currency) {
|
||||
getInstance().currency = currency;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public Builder setAvailIfSupported(boolean avail) {
|
||||
getInstance().avail = avail;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public Builder setReasonIfSupported(String reason) {
|
||||
getInstance().reason = reason;
|
||||
|
|
|
@ -23,7 +23,7 @@ import javax.xml.bind.annotation.XmlRootElement;
|
|||
import org.joda.money.CurrencyUnit;
|
||||
|
||||
/**
|
||||
* An XML data object that represents version 0.11 of the fee extension that may be present on the
|
||||
* An XML data object that represents version 0.11 of the fee extension that may be present on the
|
||||
* response to EPP domain check commands.
|
||||
*/
|
||||
@XmlRootElement(name = "chkData")
|
||||
|
@ -33,7 +33,7 @@ public class FeeCheckResponseExtensionV11
|
|||
/** Check responses. */
|
||||
@XmlElement(name = "cd")
|
||||
ImmutableList<FeeCheckResponseExtensionItemV11> items;
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public void setCurrencyIfSupported(CurrencyUnit currency) {}
|
||||
|
|
|
@ -25,7 +25,7 @@ import javax.xml.bind.annotation.XmlType;
|
|||
@XmlType(propOrder = {"currency", "fees", "credits"})
|
||||
public class FeeCreateCommandExtensionV11
|
||||
extends FeeTransformCommandExtensionImpl implements FeeTransformCommandExtension {
|
||||
|
||||
|
||||
@Override
|
||||
public FeeTransformResponseExtension.Builder createResponseBuilder() {
|
||||
return new FeeCreateResponseExtensionV11.Builder();
|
||||
|
|
|
@ -25,7 +25,7 @@ import javax.xml.bind.annotation.XmlType;
|
|||
@XmlType(propOrder = {"currency", "fees", "credits"})
|
||||
public class FeeRenewCommandExtensionV11
|
||||
extends FeeTransformCommandExtensionImpl implements FeeTransformCommandExtension {
|
||||
|
||||
|
||||
@Override
|
||||
public FeeTransformResponseExtension.Builder createResponseBuilder() {
|
||||
return new FeeRenewResponseExtensionV11.Builder();
|
||||
|
|
|
@ -25,7 +25,7 @@ import javax.xml.bind.annotation.XmlType;
|
|||
@XmlType(propOrder = {"currency", "fees", "credits"})
|
||||
public class FeeTransferCommandExtensionV11
|
||||
extends FeeTransformCommandExtensionImpl implements FeeTransformCommandExtension {
|
||||
|
||||
|
||||
@Override
|
||||
public FeeTransformResponseExtension.Builder createResponseBuilder() {
|
||||
return new FeeTransferResponseExtensionV11.Builder();
|
||||
|
|
|
@ -25,7 +25,7 @@ import javax.xml.bind.annotation.XmlType;
|
|||
@XmlType(propOrder = {"currency", "fees", "credits"})
|
||||
public class FeeUpdateCommandExtensionV11
|
||||
extends FeeTransformCommandExtensionImpl implements FeeTransformCommandExtension {
|
||||
|
||||
|
||||
@Override
|
||||
public FeeTransformResponseExtension.Builder createResponseBuilder() {
|
||||
return new FeeUpdateResponseExtensionV11.Builder();
|
||||
|
|
|
@ -62,7 +62,7 @@ public class FeeCheckResponseExtensionItemCommandV12 extends ImmutableObject {
|
|||
*/
|
||||
@XmlElement(name = "class")
|
||||
String feeClass;
|
||||
|
||||
|
||||
/** The effective date that the check is to be performed on (if specified in the query). */
|
||||
@XmlElement(name = "date")
|
||||
DateTime effectiveDate;
|
||||
|
|
|
@ -51,9 +51,9 @@ public class FeeCheckResponseExtensionItemV12
|
|||
public static class Builder
|
||||
extends GenericBuilder<FeeCheckResponseExtensionItemV12, Builder>
|
||||
implements FeeCheckResponseExtensionItem.Builder {
|
||||
|
||||
|
||||
final FeeCheckResponseExtensionItemCommandV12.Builder commandBuilder;
|
||||
|
||||
|
||||
Builder() {
|
||||
super();
|
||||
commandBuilder = new FeeCheckResponseExtensionItemCommandV12.Builder();
|
||||
|
@ -96,12 +96,12 @@ public class FeeCheckResponseExtensionItemV12
|
|||
public Builder setCurrencyIfSupported(CurrencyUnit currency) {
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public Builder setAvailIfSupported(boolean avail) {
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public Builder setReasonIfSupported(String reason) {
|
||||
return this;
|
||||
|
|
|
@ -24,7 +24,7 @@ import javax.xml.bind.annotation.XmlType;
|
|||
import org.joda.money.CurrencyUnit;
|
||||
|
||||
/**
|
||||
* An XML data object that represents version 0.12 of the fee extension that may be present on the
|
||||
* An XML data object that represents version 0.12 of the fee extension that may be present on the
|
||||
* response to EPP domain check commands.
|
||||
*/
|
||||
@XmlRootElement(name = "chkData")
|
||||
|
@ -33,7 +33,7 @@ public class FeeCheckResponseExtensionV12
|
|||
extends ImmutableObject implements FeeCheckResponseExtension<FeeCheckResponseExtensionItemV12> {
|
||||
|
||||
CurrencyUnit currency;
|
||||
|
||||
|
||||
/** Check responses. */
|
||||
@XmlElement(name = "cd")
|
||||
ImmutableList<FeeCheckResponseExtensionItemV12> items;
|
||||
|
|
|
@ -25,7 +25,7 @@ import javax.xml.bind.annotation.XmlType;
|
|||
@XmlType(propOrder = {"currency", "fees", "credits"})
|
||||
public class FeeCreateCommandExtensionV12
|
||||
extends FeeTransformCommandExtensionImpl implements FeeTransformCommandExtension {
|
||||
|
||||
|
||||
@Override
|
||||
public FeeTransformResponseExtension.Builder createResponseBuilder() {
|
||||
return new FeeCreateResponseExtensionV12.Builder();
|
||||
|
|
|
@ -25,7 +25,7 @@ import javax.xml.bind.annotation.XmlType;
|
|||
@XmlType(propOrder = {"currency", "fees", "credits"})
|
||||
public class FeeRenewCommandExtensionV12
|
||||
extends FeeTransformCommandExtensionImpl implements FeeTransformCommandExtension {
|
||||
|
||||
|
||||
@Override
|
||||
public FeeTransformResponseExtension.Builder createResponseBuilder() {
|
||||
return new FeeRenewResponseExtensionV12.Builder();
|
||||
|
|
|
@ -25,7 +25,7 @@ import javax.xml.bind.annotation.XmlType;
|
|||
@XmlType(propOrder = {"currency", "fees", "credits"})
|
||||
public class FeeTransferCommandExtensionV12
|
||||
extends FeeTransformCommandExtensionImpl implements FeeTransformCommandExtension {
|
||||
|
||||
|
||||
@Override
|
||||
public FeeTransformResponseExtension.Builder createResponseBuilder() {
|
||||
return new FeeTransferResponseExtensionV12.Builder();
|
||||
|
|
|
@ -25,7 +25,7 @@ import javax.xml.bind.annotation.XmlType;
|
|||
@XmlType(propOrder = {"currency", "fees", "credits"})
|
||||
public class FeeUpdateCommandExtensionV12
|
||||
extends FeeTransformCommandExtensionImpl implements FeeTransformCommandExtension {
|
||||
|
||||
|
||||
@Override
|
||||
public FeeTransformResponseExtension.Builder createResponseBuilder() {
|
||||
return new FeeUpdateResponseExtensionV12.Builder();
|
||||
|
|
|
@ -30,7 +30,7 @@ import javax.xml.bind.annotation.XmlRootElement;
|
|||
public class FlagsCreateCommandExtension implements CommandExtension {
|
||||
@XmlElement(name = "flag")
|
||||
List<String> flags;
|
||||
|
||||
|
||||
public List<String> getFlags() {
|
||||
return flags;
|
||||
}
|
||||
|
|
|
@ -36,7 +36,7 @@ import javax.xml.bind.annotation.XmlValue;
|
|||
*/
|
||||
@Embed
|
||||
public class LaunchPhase extends ImmutableObject {
|
||||
|
||||
|
||||
/**
|
||||
* The phase during which trademark holders can submit registrations or applications with
|
||||
* trademark information that can be validated by the server.
|
||||
|
@ -65,8 +65,8 @@ public class LaunchPhase extends ImmutableObject {
|
|||
public static final LaunchPhase CUSTOM = create("custom", null);
|
||||
|
||||
private static final Map<String, LaunchPhase> LAUNCH_PHASES = initEnumMapping();
|
||||
|
||||
/**
|
||||
|
||||
/**
|
||||
* Returns a map of the static final fields to their values, case-converted.
|
||||
*/
|
||||
private static final ImmutableMap<String, LaunchPhase> initEnumMapping() {
|
||||
|
@ -84,7 +84,7 @@ public class LaunchPhase extends ImmutableObject {
|
|||
instance.subphase = subphase;
|
||||
return instance;
|
||||
}
|
||||
|
||||
|
||||
@XmlValue
|
||||
String phase;
|
||||
|
||||
|
@ -94,15 +94,15 @@ public class LaunchPhase extends ImmutableObject {
|
|||
*/
|
||||
@XmlAttribute(name = "name")
|
||||
String subphase;
|
||||
|
||||
|
||||
public String getPhase() {
|
||||
return phase;
|
||||
}
|
||||
|
||||
|
||||
public String getSubphase() {
|
||||
return subphase;
|
||||
}
|
||||
|
||||
|
||||
public static LaunchPhase fromValue(String value) {
|
||||
return LAUNCH_PHASES.get(value);
|
||||
}
|
||||
|
|
|
@ -131,7 +131,7 @@ public class EppInput extends ImmutableObject {
|
|||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
@SafeVarargs
|
||||
@Nullable
|
||||
public final <E extends CommandExtension>
|
||||
|
|
|
@ -181,7 +181,7 @@ public class EppResponse extends ImmutableObject implements ResponseOrGreeting {
|
|||
public ImmutableList<? extends ResponseExtension> getExtensions() {
|
||||
return extensions;
|
||||
}
|
||||
|
||||
|
||||
@Nullable
|
||||
public ResponseExtension getFirstExtensionOfType(Class<? extends ResponseExtension> clazz) {
|
||||
return FluentIterable.from(extensions).filter(clazz).first().orNull();
|
||||
|
@ -205,7 +205,7 @@ public class EppResponse extends ImmutableObject implements ResponseOrGreeting {
|
|||
getFirstExtensionOfType(Class<? extends ResponseExtension>... classes) {
|
||||
return getFirstExtensionOfType(ImmutableList.copyOf(classes));
|
||||
}
|
||||
|
||||
|
||||
public Result getResult() {
|
||||
return result;
|
||||
}
|
||||
|
|
|
@ -121,7 +121,7 @@ public final class CreateLrpTokensCommand implements RemoteApiCommand {
|
|||
/**
|
||||
* This function generates at MOST {@code count} tokens, after filtering out any token strings
|
||||
* that already exist.
|
||||
*
|
||||
*
|
||||
* <p>Note that in the incredibly rare case that all generated tokens already exist, this function
|
||||
* may return an empty set.
|
||||
*/
|
||||
|
|
|
@ -16,8 +16,8 @@ package google.registry.tools.params;
|
|||
|
||||
import google.registry.util.TypeUtils.TypeInstantiator;
|
||||
|
||||
/** Base class for Enum-based parameters.
|
||||
*
|
||||
/** Base class for Enum-based parameters.
|
||||
*
|
||||
* <p>This is not necessary for single-value Enum parameters (i.e. arity = 1) as JCommander natively
|
||||
* supports them, but is necessary for variable-arity ({@code List<Enum>}) parameters.
|
||||
*/
|
||||
|
|
|
@ -20,7 +20,7 @@ public class PipelineUtils {
|
|||
private static final String URL_PREFIX = "/_ah/pipeline/status.html?root=";
|
||||
|
||||
private PipelineUtils() {}
|
||||
|
||||
|
||||
public static String createJobPath(String jobId) {
|
||||
return URL_PREFIX + jobId;
|
||||
}
|
||||
|
|
|
@ -29,7 +29,7 @@ public final class TeeOutputStream extends OutputStream {
|
|||
|
||||
private final ImmutableList<? extends OutputStream> outputs;
|
||||
private boolean isClosed;
|
||||
|
||||
|
||||
public TeeOutputStream(@WillNotClose Iterable<? extends OutputStream> outputs) {
|
||||
this.outputs = ImmutableList.copyOf(outputs);
|
||||
checkArgument(!this.outputs.isEmpty(), "must provide at least one output stream");
|
||||
|
|
|
@ -70,7 +70,7 @@ public class EppLoginUserTest extends EppTestCase {
|
|||
assertCommandAndResponse("logout.xml", "logout_response.xml");
|
||||
assertCommandAndResponse("login2_valid.xml", "login_response_unauthorized_role.xml");
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void testLoginLogout_wrongPasswordStillWorks() throws Exception {
|
||||
// For user-based logins the password in the epp xml is ignored.
|
||||
|
|
|
@ -368,7 +368,7 @@ public class RdeStagingActionTest extends MapreduceTestCase<RdeStagingAction> {
|
|||
.containsExactly("New Registrar", "The Registrar");
|
||||
assertThat(mapifyCounts(header)).containsEntry(RdeResourceType.REGISTRAR.getUri(), 2L);
|
||||
}
|
||||
|
||||
|
||||
assertThat(
|
||||
ofy().load().key(Cursor.createKey(RDE_STAGING, Registry.get("fop"))).now()
|
||||
.getCursorTime())
|
||||
|
|
|
@ -27,7 +27,7 @@ import javax.inject.Named;
|
|||
* A string generator that produces strings using sequential characters in its alphabet. This is
|
||||
* most useful in tests as a "fake" password generator (which would otherwise use
|
||||
* {@link RandomStringGenerator}.
|
||||
*
|
||||
*
|
||||
* <p>Note that consecutive calls to createString will continue where the last call left off in
|
||||
* the alphabet.
|
||||
*/
|
||||
|
|
|
@ -142,7 +142,7 @@ public class CreateLrpTokensCommandTest extends CommandTestCase<CreateLrpTokensC
|
|||
assertInStdout(String.format("domain%d.tld,LRP_%04d_abcdefghijklmnop", i, i));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void testFailure_missingAssigneeOrFile() throws Exception {
|
||||
thrown.expect(
|
||||
|
@ -184,7 +184,7 @@ public class CreateLrpTokensCommandTest extends CommandTestCase<CreateLrpTokensC
|
|||
.isEqualTo(expectedToken.getRedemptionHistoryEntry());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private LrpToken createToken(
|
||||
String token,
|
||||
String assignee,
|
||||
|
|
|
@ -26,7 +26,7 @@ import org.junit.runners.JUnit4;
|
|||
/** Unit tests for {@link EnumParameter}. */
|
||||
@RunWith(JUnit4.class)
|
||||
public class EnumParameterTest {
|
||||
|
||||
|
||||
@Rule
|
||||
public final ExceptionRule thrown = new ExceptionRule();
|
||||
|
||||
|
|
|
@ -109,7 +109,7 @@ public class XmlTestUtils {
|
|||
* key. We may have to update the key as well, to get the namespaces correct. A returned key of
|
||||
* null indicates that we should use the existing key. A non-null key indicates that we should
|
||||
* replace the existing key.
|
||||
*
|
||||
*
|
||||
* @param elementName the name under which the current subtree was found, or null if the current
|
||||
* subtree's name is nonexistent or irrelevant
|
||||
* @param obj the current subtree
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue