From 07a89c8d05585bdf65efbf3a94f8d0c0712bddcb Mon Sep 17 00:00:00 2001 From: cgoldfeder Date: Thu, 2 Jun 2016 08:18:01 -0700 Subject: [PATCH] Remove deprecated method from FlowRunner ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=123866995 --- java/google/registry/flows/FlowRunner.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/java/google/registry/flows/FlowRunner.java b/java/google/registry/flows/FlowRunner.java index 344c0ae7a..0bc44fe86 100644 --- a/java/google/registry/flows/FlowRunner.java +++ b/java/google/registry/flows/FlowRunner.java @@ -15,7 +15,6 @@ package google.registry.flows; import static com.google.common.base.Throwables.getStackTraceAsString; -import static com.google.common.base.Throwables.propagateIfInstanceOf; import static com.google.common.io.BaseEncoding.base64; import static google.registry.model.ofy.ObjectifyService.ofy; import static google.registry.xml.XmlTransformer.prettyPrint; @@ -123,7 +122,9 @@ public class FlowRunner { } catch (RuntimeException e) { logger.warning("EPP_Mutation_Failed " + new JsonLogStatement(trid)); logger.warning(getStackTraceAsString(e)); - propagateIfInstanceOf(e.getCause(), EppException.class); + if (e.getCause() instanceof EppException) { + throw (EppException) e.getCause(); + } throw e; } } @@ -182,7 +183,7 @@ public class FlowRunner { } /** Exception for canceling a transaction while capturing what the output would have been. */ - private class DryRunException extends RuntimeException { + private static class DryRunException extends RuntimeException { final EppOutput output; DryRunException(EppOutput output) {