public ShowByPathWarningsGuard(String[] paths, ShowType showType) { Preconditions.checkArgument(paths != null); Preconditions.checkArgument(showType != null); List<String> pathList = Lists.newArrayList(paths); if (showType == ShowType.INCLUDE) { warningsGuard = ByPathWarningsGuard.exceptPath(pathList, CheckLevel.OFF); } else { warningsGuard = ByPathWarningsGuard.forPath(pathList, CheckLevel.OFF); } }
@Override protected int getPriority() { return warningsGuard.getPriority(); }
@Override public CheckLevel level(JSError error) { return warningsGuard.level(error); }