From 3d9369fae7d4b331424d266bc3abd56abd265fd9 Mon Sep 17 00:00:00 2001 From: mcilwain Date: Wed, 7 Sep 2016 09:00:07 -0700 Subject: [PATCH] Switch Optional.ofNullable() to Optional.fromNullable() in EppMetric The latter is the canonical way to call it; the former is not available in public Guava (and is just a pass-through to fromNullable anyway). ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=132441956 --- .../google/registry/monitoring/whitebox/EppMetric.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/java/google/registry/monitoring/whitebox/EppMetric.java b/java/google/registry/monitoring/whitebox/EppMetric.java index 832d6f9f6..7ca133f3f 100644 --- a/java/google/registry/monitoring/whitebox/EppMetric.java +++ b/java/google/registry/monitoring/whitebox/EppMetric.java @@ -69,11 +69,11 @@ public abstract class EppMetric implements BigQueryMetric { requestId, startTimestamp, endTimestamp, - Optional.ofNullable(commandName), - Optional.ofNullable(clientId), - Optional.ofNullable(privilegeLevel), - Optional.ofNullable(eppTarget), - Optional.ofNullable(status), + Optional.fromNullable(commandName), + Optional.fromNullable(clientId), + Optional.fromNullable(privilegeLevel), + Optional.fromNullable(eppTarget), + Optional.fromNullable(status), attempts); }