mirror of
https://github.com/google/nomulus.git
synced 2025-05-13 07:57:13 +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.typeFilter = typeFilter;
|
||||
if (eppInputFilter == null) {
|
||||
this.eppInputFilter = Optional.absent();
|
||||
this.eppInputFilter = Optional.<Predicate<EppInput>>absent();
|
||||
} else {
|
||||
this.eppInputFilter = Optional.of(eppInputFilter);
|
||||
}
|
||||
|
@ -305,7 +305,9 @@ public class VerifyOteAction implements Runnable, JsonAction {
|
|||
byte[] xmlBytes = historyEntry.getXmlBytes();
|
||||
// xmlBytes can be null on contact create and update for safe-harbor compliance.
|
||||
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(
|
||||
FluentIterable.from(EnumSet.allOf(StatType.class))
|
||||
.filter(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue