mirror of
https://github.com/google/nomulus.git
synced 2025-05-20 11:19:35 +02:00
Use an empty interval instead of null to signal no LRP
This removes the need for some null checks ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=136146549
This commit is contained in:
parent
148270a813
commit
064026a4a5
3 changed files with 5 additions and 4 deletions
|
@ -574,7 +574,7 @@ public class Registry extends ImmutableObject implements Buildable {
|
|||
@Nullable
|
||||
public Interval getLrpPeriod() {
|
||||
return (lrpPeriodStart == null && lrpPeriodEnd == null)
|
||||
? null
|
||||
? new Interval(START_OF_TIME, Duration.ZERO)
|
||||
: new Interval(lrpPeriodStart, lrpPeriodEnd);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue