|
41 | 41 | import com.google.javascript.jscomp.deps.ModuleLoader.ResolutionMode;
|
42 | 42 | import com.google.javascript.jscomp.parsing.Config;
|
43 | 43 | import com.google.javascript.jscomp.parsing.parser.FeatureSet;
|
44 |
| -import com.google.javascript.jscomp.resources.ResourceLoader; |
45 | 44 | import com.google.javascript.rhino.IR;
|
46 | 45 | import com.google.javascript.rhino.Node;
|
47 | 46 | import com.google.javascript.rhino.SourcePosition;
|
@@ -1126,15 +1125,8 @@ public boolean getAssumeStaticInheritanceIsNotUsed() {
|
1126 | 1125 |
|
1127 | 1126 | private String productionInstrumentationArrayName;
|
1128 | 1127 |
|
1129 |
| - private static final ImmutableList<ConformanceConfig> GLOBAL_CONFORMANCE_CONFIGS = |
1130 |
| - ImmutableList.of(ResourceLoader.loadGlobalConformance(CompilerOptions.class)); |
1131 |
| - |
1132 |
| - /** |
1133 |
| - * List of conformance configs to use in CheckConformance. |
1134 |
| - * |
1135 |
| - * <p>The first entry of this list is always the Global ConformanceConfig |
1136 |
| - */ |
1137 |
| - private ImmutableList<ConformanceConfig> conformanceConfigs = GLOBAL_CONFORMANCE_CONFIGS; |
| 1128 | + /** List of conformance configs to use in CheckConformance. */ |
| 1129 | + private ImmutableList<ConformanceConfig> conformanceConfigs = ImmutableList.of(); |
1138 | 1130 |
|
1139 | 1131 | /**
|
1140 | 1132 | * Remove the first match of this regex from any paths when checking conformance whitelists.
|
@@ -2667,11 +2659,7 @@ public void setConformanceConfig(ConformanceConfig conformanceConfig) {
|
2667 | 2659 | /** Both enable and configure conformance checks, if non-null. */
|
2668 | 2660 | @GwtIncompatible("Conformance")
|
2669 | 2661 | public void setConformanceConfigs(List<ConformanceConfig> configs) {
|
2670 |
| - this.conformanceConfigs = |
2671 |
| - ImmutableList.<ConformanceConfig>builder() |
2672 |
| - .add(ResourceLoader.loadGlobalConformance(CompilerOptions.class)) |
2673 |
| - .addAll(configs) |
2674 |
| - .build(); |
| 2662 | + this.conformanceConfigs = ImmutableList.copyOf(configs); |
2675 | 2663 | }
|
2676 | 2664 |
|
2677 | 2665 | public void clearConformanceConfigs() {
|
|
0 commit comments