question: ArrayList < SourceFile > trimFileList ( ArrayList < SourceFile > files ) { HashMap < String , String > names = new HashMap < String , String > ( ) ; ArrayList < SourceFile > list = new ArrayList < SourceFile > ( ) ; int size = files . size ( ) ; for ( int i = 0 ; i < size ; i ++ ) { boolean addIt = false ; SourceFile fi = files . get ( i ) ; String fName = fi . getRawName ( ) ; if ( m_swfFilter == null ) { if ( names . get ( fName ) == null ) addIt = true ; } else { addIt = m_swfFilter . containsSource ( fi ) ; } if ( addIt ) { names . put ( fName , fName ) ; list . add ( fi ) ; } } return list ; }
target:  Walk the file list looking for name collisions. If we find one, then we remove it