mirror of
https://github.com/google/nomulus.git
synced 2025-05-15 00:47:11 +02:00
Declare types in Optional.absent() usage
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=161865295
This commit is contained in:
parent
9688638c75
commit
7d7048ac12
1 changed files with 4 additions and 2 deletions
|
@ -251,7 +251,7 @@ public class VerifyOteAction implements Runnable, JsonAction {
|
||||||
this.requirement = requirement;
|
this.requirement = requirement;
|
||||||
this.typeFilter = typeFilter;
|
this.typeFilter = typeFilter;
|
||||||
if (eppInputFilter == null) {
|
if (eppInputFilter == null) {
|
||||||
this.eppInputFilter = Optional.absent();
|
this.eppInputFilter = Optional.<Predicate<EppInput>>absent();
|
||||||
} else {
|
} else {
|
||||||
this.eppInputFilter = Optional.of(eppInputFilter);
|
this.eppInputFilter = Optional.of(eppInputFilter);
|
||||||
}
|
}
|
||||||
|
@ -305,7 +305,9 @@ public class VerifyOteAction implements Runnable, JsonAction {
|
||||||
byte[] xmlBytes = historyEntry.getXmlBytes();
|
byte[] xmlBytes = historyEntry.getXmlBytes();
|
||||||
// xmlBytes can be null on contact create and update for safe-harbor compliance.
|
// xmlBytes can be null on contact create and update for safe-harbor compliance.
|
||||||
final Optional<EppInput> eppInput =
|
final Optional<EppInput> eppInput =
|
||||||
(xmlBytes == null) ? Optional.absent() : Optional.of(unmarshal(EppInput.class, xmlBytes));
|
(xmlBytes == null)
|
||||||
|
? Optional.<EppInput>absent()
|
||||||
|
: Optional.of(unmarshal(EppInput.class, xmlBytes));
|
||||||
if (!statCounts.addAll(
|
if (!statCounts.addAll(
|
||||||
FluentIterable.from(EnumSet.allOf(StatType.class))
|
FluentIterable.from(EnumSet.allOf(StatType.class))
|
||||||
.filter(
|
.filter(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue