Exemplo n.º 1
0
 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);
   }
 }
Exemplo n.º 2
0
 @Override
 protected int getPriority() {
   return warningsGuard.getPriority();
 }
Exemplo n.º 3
0
 @Override
 public CheckLevel level(JSError error) {
   return warningsGuard.level(error);
 }