mirror of
https://github.com/google/nomulus.git
synced 2025-05-13 07:57:13 +02:00
Tidy up ExpandrecurringBillingEventsAction
Per nickfelt's suggestion on [] ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=127193451
This commit is contained in:
parent
7b9752c99d
commit
2caba95d28
10 changed files with 12 additions and 41 deletions
|
@ -241,11 +241,8 @@ public class ExpandRecurringBillingEventsAction implements Runnable {
|
|||
.filter(new Predicate<BillingEvent.OneTime>() {
|
||||
@Override
|
||||
public boolean apply(OneTime billingEvent) {
|
||||
Key<? extends BillingEvent> cancellationMatchingBillingEvent =
|
||||
billingEvent.getCancellationMatchingBillingEvent();
|
||||
return cancellationMatchingBillingEvent != null
|
||||
&& billingEvent.getCancellationMatchingBillingEvent().equals(
|
||||
Key.create(recurringEvent));
|
||||
return Key.create(recurringEvent)
|
||||
.equals(billingEvent.getCancellationMatchingBillingEvent());
|
||||
}})
|
||||
.transform(new Function<OneTime, DateTime>() {
|
||||
@Override
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue