Skip to content

Commit

Permalink
overdue: reformat DefaultOverdueState
Browse files Browse the repository at this point in the history
No functional change.

Signed-off-by: Pierre-Alexandre Meyer <pierre@ning.com>
  • Loading branch information
Pierre-Alexandre Meyer committed Sep 21, 2012
1 parent b945d6d commit fe5472b
Showing 1 changed file with 1 addition and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ public class DefaultOverdueState<T extends Blockable> extends ValidatingConfig<O

private static final int MAX_NAME_LENGTH = 50;


@XmlElement(required = false, name = "condition")
private DefaultCondition<T> condition;

Expand All @@ -65,7 +64,6 @@ public class DefaultOverdueState<T extends Blockable> extends ValidatingConfig<O
@XmlElement(required = false, name = "autoReevaluationInterval")
private DefaultDuration autoReevaluationInterval;


//Other actions could include
// - send email
// - trigger payment retry?
Expand All @@ -74,17 +72,11 @@ public class DefaultOverdueState<T extends Blockable> extends ValidatingConfig<O
// - set payment retry interval
// - backup payment mechanism?

/* (non-Javadoc)
* @see com.ning.billing.catalog.overdue.OverdueState#getStageName()
*/
@Override
public String getName() {
return name;
}

/* (non-Javadoc)
* @see com.ning.billing.catalog.overdue.OverdueState#getExternalMessage()
*/
@Override
public String getExternalMessage() {
return externalMessage;
Expand All @@ -95,9 +87,6 @@ public boolean blockChanges() {
return blockChanges || disableEntitlement;
}

/* (non-Javadoc)
* @see com.ning.billing.catalog.overdue.OverdueState#applyCancel()
*/
@Override
public boolean disableEntitlementAndChangesBlocked() {
return disableEntitlement;
Expand Down Expand Up @@ -146,7 +135,6 @@ public DefaultOverdueState<T> setSubscriptionCancellationPolicy(final OverdueCan
return this;
}


protected DefaultOverdueState<T> setBlockChanges(final boolean cancel) {
this.blockChanges = cancel;
return this;
Expand All @@ -173,7 +161,6 @@ public ValidationErrors validate(final OverdueConfig root,

@Override
public int getDaysBetweenPaymentRetries() {
final Integer daysBetweenPaymentRetries = 8;
return daysBetweenPaymentRetries;
return 8;
}
}

0 comments on commit fe5472b

Please sign in to comment.