Support creation of EPP fee objects using custom descriptions

This is a reasonable thing that custom code might want to do (Donuts already has
a use case).

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=144216929
This commit is contained in:
mcilwain 2017-01-11 09:49:07 -08:00 committed by Ben McIlwain
parent 3ee98988c5
commit a5d5c9e2fd
3 changed files with 32 additions and 16 deletions

View file

@ -133,11 +133,6 @@ public abstract class BaseFee extends ImmutableObject {
return validDateRange;
}
protected void generateDescription(Object... args) {
checkState(type != null);
description = type.renderDescription(args);
}
public boolean hasZeroCost() {
return cost.signum() == 0;
}