From 7d7048ac126afd0bba7e899f48808dc8febf7654 Mon Sep 17 00:00:00 2001 From: bbilbo Date: Thu, 13 Jul 2017 14:30:37 -0700 Subject: [PATCH] Declare types in Optional.absent() usage ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=161865295 --- java/google/registry/tools/server/VerifyOteAction.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/java/google/registry/tools/server/VerifyOteAction.java b/java/google/registry/tools/server/VerifyOteAction.java index 70a5bc4a8..29fa0ed9c 100644 --- a/java/google/registry/tools/server/VerifyOteAction.java +++ b/java/google/registry/tools/server/VerifyOteAction.java @@ -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.>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 = - (xmlBytes == null) ? Optional.absent() : Optional.of(unmarshal(EppInput.class, xmlBytes)); + (xmlBytes == null) + ? Optional.absent() + : Optional.of(unmarshal(EppInput.class, xmlBytes)); if (!statCounts.addAll( FluentIterable.from(EnumSet.allOf(StatType.class)) .filter(