Map<String,Set<CallLocationModel>> computeFilteredTaintSourcesMap(Set<CallLocationModel> sources){
  if (!sources.isEmpty()) {
    if (fFilteredTaintSourcesMap != null && !fFilteredTaintSourcesMap.isEmpty()) {
      Map<String,Set<CallLocationModel>> result=new TreeMap<String,Set<CallLocationModel>>();
      for (      Entry<String,Set<CallLocationModel>> entry : fFilteredTaintSourcesMap.entrySet()) {
        Set<CallLocationModel> filteredSources=new TreeSet<CallLocationModel>();
        for (        CallLocationModel source : entry.getValue()) {
          if (sources.contains(source)) {
            filteredSources.add(source);
          }
        }
        if (!filteredSources.isEmpty()) {
          String taintKind=entry.getKey();
          result.put(taintKind,filteredSources);
        }
      }
      return result;
    }
  }
  return Collections.EMPTY_MAP;
}

Map < String , Set < CallLocationModel > > computeFilteredTaintSourcesMap ( Set < CallLocationModel > sources ) { if ( ! sources . isEmpty ( ) ) { if ( fFilteredTaintSourcesMap != null && ! fFilteredTaintSourcesMap . isEmpty ( ) ) { Map < String , Set < CallLocationModel > > result = new TreeMap < String , Set < CallLocationModel > > ( ) ; for ( Entry < String , Set < CallLocationModel > > entry : fFilteredTaintSourcesMap . entrySet ( ) ) { Set < CallLocationModel > filteredSources = new TreeSet < CallLocationModel > ( ) ; for ( CallLocationModel source : entry . getValue ( ) ) { if ( sources . contains ( source ) ) { filteredSources . add ( source ) ; } } if ( ! filteredSources . isEmpty ( ) ) { String taintKind = entry . getKey ( ) ; result . put ( taintKind , filteredSources ) ; } } return result ; } } return Collections . EMPTY_MAP ; }
given a set of info sources , computes the set of filtered info sources using the filtering info stored in the field ffilteredtaintsourcesmap . returns the resulting set of filtered info sources .
