private void computeDefaultFilters(File indicatorFile,JsonObject jsonObj){
  defaultFilters=new ArrayList<Filter>();
  JsonArray filterArray=Utils.getFieldValueAsArray(jsonObj,"filter");
  if (filterArray != null) {
    Set<String> filterFields=Utils.getAllFilterFields(jsonObj);
    for (int i=0; i < filterArray.size(); i++) {
      JsonElement filterElt=filterArray.get(i);
      Filter filter;
      try {
        filter=Filter.parse(filterElt,filterFields);
        defaultFilters.add(filter);
      }
 catch (      FilterParseException e) {
        String title="Parse Error";
        String msg="Failed to parse the default filter in\n\n" + indicatorFile;
        DroidsafePluginUtilities.showError(title,msg,e);
        ;
        e.printStackTrace();
      }
    }
  }
}

private void computeDefaultFilters ( File indicatorFile , JsonObject jsonObj ) { defaultFilters = new ArrayList < Filter > ( ) ; JsonArray filterArray = Utils . getFieldValueAsArray ( jsonObj , "filter" ) ; if ( filterArray != null ) { Set < String > filterFields = Utils . getAllFilterFields ( jsonObj ) ; for ( int i = 0 ; i < filterArray . size ( ) ; i ++ ) { JsonElement filterElt = filterArray . get ( i ) ; Filter filter ; try { filter = Filter . parse ( filterElt , filterFields ) ; defaultFilters . add ( filter ) ; } catch ( FilterParseException e ) { String title = "Parse Error" ; String msg = "Failed to parse the default filter in\n\n" + indicatorFile ; DroidsafePluginUtilities . showError ( title , msg , e ) ; ; e . printStackTrace ( ) ; } } } }
computes the default filters from the ' filter ' property of the top - level json object for the indicator .
