From c34e5476596afc2aa0b9662d78b0f54d4af47413 Mon Sep 17 00:00:00 2001 From: lukes Date: Thu, 8 Feb 2018 14:19:27 -0800 Subject: [PATCH] Remove references to SoySyntaxException SoySyntaxException is an abstract exception type and is never even declared to be thrown (all declarations about this changed about 2 years ago). So places catching it should either change to catch SoyCompilationException, or do nothing and let it propagate. Tested: TAP sample presubmit queue [] ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=185050724 --- java/google/registry/ui/server/SoyTemplateUtils.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/java/google/registry/ui/server/SoyTemplateUtils.java b/java/google/registry/ui/server/SoyTemplateUtils.java index 87e23e042..ec7106a55 100644 --- a/java/google/registry/ui/server/SoyTemplateUtils.java +++ b/java/google/registry/ui/server/SoyTemplateUtils.java @@ -28,7 +28,6 @@ import com.google.re2j.Matcher; import com.google.re2j.Pattern; import com.google.template.soy.SoyFileSet; import com.google.template.soy.SoyUtils; -import com.google.template.soy.base.SoySyntaxException; import com.google.template.soy.parseinfo.SoyFileInfo; import com.google.template.soy.shared.SoyCssRenamingMap; import com.google.template.soy.tofu.SoyTofu; @@ -55,7 +54,7 @@ public final class SoyTemplateUtils { Map globals = new HashMap<>(); try { globals.putAll(SoyUtils.parseCompileTimeGlobals(asCharSource(SOY_GLOBALS, UTF_8))); - } catch (SoySyntaxException | IOException e) { + } catch (IOException e) { throw new RuntimeException("Failed to load soy globals", e); } globals.put("DEBUG", debugMode.ordinal());