From 9c3b9c1946b9d6bd3fd676cd50db153560b5a3a9 Mon Sep 17 00:00:00 2001 From: Peter Donald Date: Thu, 4 Apr 2019 10:56:24 -0700 Subject: [PATCH] Expose DiagnosticGroups.forName(name) as a static method Closes https://github.com/google/closure-compiler/pull/3309 ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=241961395 --- src/com/google/javascript/jscomp/DiagnosticGroups.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/google/javascript/jscomp/DiagnosticGroups.java b/src/com/google/javascript/jscomp/DiagnosticGroups.java index b0ccab189f4..d01494c8a11 100644 --- a/src/com/google/javascript/jscomp/DiagnosticGroups.java +++ b/src/com/google/javascript/jscomp/DiagnosticGroups.java @@ -107,7 +107,7 @@ public static Map getRegisteredGroups() { } /** Find the diagnostic group registered under the given name. */ - public DiagnosticGroup forName(String name) { + public static DiagnosticGroup forName(String name) { return groupsByName.get(name); }